Skip to content

Commit

Permalink
Distutils no longer places double quotes around compiler flags (Pytho…
Browse files Browse the repository at this point in the history
…n 3.9 for Windows.)
  • Loading branch information
bcoconni committed Feb 5, 2021
1 parent a0f06e2 commit e407a68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ else:
# We cannot find the JSBSim library so the Python module must be built from
# the sources.
if compiler.compiler_type == 'msvc':
compile_flags = [('/D'+flag).replace('"', '\\"') for flag in ['_USE_MATH_DEFINES', 'NOMINMAX', ${JSBSIM_FLAGS}]]
compile_flags = ['/D'+flag for flag in ['_USE_MATH_DEFINES', 'NOMINMAX', ${JSBSIM_FLAGS}]]
if sys.version_info < (3,9):
compile_flags = [flag.replace('"', '\\"') for flag in compile_flags]
else:
compile_flags = ['-D'+flag for flag in [${JSBSIM_FLAGS}]]

Expand Down

0 comments on commit e407a68

Please sign in to comment.