Skip to content

Commit c6b6d4e

Browse files
committed
setup.py: Simplify
1 parent 83129bf commit c6b6d4e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,16 +481,14 @@ def setup_package():
481481
# numpy.distutils insist all data files are installed in site-packages
482482
'install_data': install_data.install_data
483483
}
484-
if have_numpy and have_cython:
485-
extra_args = {}
486-
else:
484+
if not (have_numpy and have_cython):
487485
# substitute a build_ext command with one that raises an error when
488486
# building. In order to fully support `pip install` we need to
489487
# survive a `./setup egg_info` without numpy so pip can properly
490488
# query our install dependencies
491-
extra_args = {}
492489
cmdclass["build_ext"] = build_ext_error
493490

491+
extra_args = {}
494492
setup(
495493
name=NAME,
496494
version=FULLVERSION,

0 commit comments

Comments
 (0)