Commit e0c8a312 authored by Stefan Behnel's avatar Stefan Behnel

tiny cleanup in setup.py

parent 73368ff5
......@@ -167,12 +167,13 @@ def compile_cython_modules(profile=False):
print("ERROR: %s" % sys.exc_info()[1])
print("Extension module compilation failed, using plain Python implementation")
cython_profile = '--cython-profile' in sys.argv
if cython_profile:
sys.argv.remove('--cython-profile')
try:
sys.argv.remove("--no-cython-compile")
except ValueError:
cython_profile = '--cython-profile' in sys.argv
if cython_profile:
sys.argv.remove('--cython-profile')
compile_cython_modules(cython_profile)
setup_args.update(setuptools_extra_args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment