setup.py: fix indentation
This commit is contained in:
parent
81f3e49bba
commit
560c634ed8
16
setup.py
16
setup.py
@ -49,16 +49,16 @@ with_cython = (
|
|||||||
opt_with_cython = {'--with-cython'}.intersection(sys.argv)
|
opt_with_cython = {'--with-cython'}.intersection(sys.argv)
|
||||||
opt_without_cython = {'--without-cython'}.intersection(sys.argv)
|
opt_without_cython = {'--without-cython'}.intersection(sys.argv)
|
||||||
if opt_with_cython and opt_without_cython:
|
if opt_with_cython and opt_without_cython:
|
||||||
sys.exit(
|
sys.exit(
|
||||||
"error: the options '--with-cython' and '--without-cython' are "
|
"error: the options '--with-cython' and '--without-cython' are "
|
||||||
"mutually exclusive"
|
"mutually exclusive"
|
||||||
)
|
)
|
||||||
elif opt_with_cython:
|
elif opt_with_cython:
|
||||||
sys.argv.remove("--with-cython")
|
sys.argv.remove("--with-cython")
|
||||||
with_cython = True
|
with_cython = True
|
||||||
elif opt_without_cython:
|
elif opt_without_cython:
|
||||||
sys.argv.remove("--without-cython")
|
sys.argv.remove("--without-cython")
|
||||||
with_cython = False
|
with_cython = False
|
||||||
|
|
||||||
if with_cython and not has_cython:
|
if with_cython and not has_cython:
|
||||||
setup_requires.append("cython")
|
setup_requires.append("cython")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user