Skip to content

Commit

Permalink
setup.py: Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Jul 22, 2023
1 parent 83129bf commit c6b6d4e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,16 +481,14 @@ def setup_package():
# numpy.distutils insist all data files are installed in site-packages
'install_data': install_data.install_data
}
if have_numpy and have_cython:
extra_args = {}
else:
if not (have_numpy and have_cython):
# substitute a build_ext command with one that raises an error when
# building. In order to fully support `pip install` we need to
# survive a `./setup egg_info` without numpy so pip can properly
# query our install dependencies
extra_args = {}
cmdclass["build_ext"] = build_ext_error

extra_args = {}
setup(
name=NAME,
version=FULLVERSION,
Expand Down

0 comments on commit c6b6d4e

Please sign in to comment.