Skip to content

Commit

Permalink
BLD: always put numpy in install_requires for wheels on OS X. Closes g…
Browse files Browse the repository at this point in the history
…h-5184.

Note: when pip downloads a tarball it also runs bdist_wheel, so avoid adding
numpy to setup_requires/install_requires on other platforms.
  • Loading branch information
rgommers committed Nov 8, 2015
1 parent 5d3bd74 commit 79a6bd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ def setup_package():
build_requires = []
try:
import numpy
if (len(sys.argv) >= 2 and sys.argv[1] == 'bdist_wheel' and
sys.platform == 'darwin'):
# We're ony building wheels for platforms where we know there's
# also a Numpy wheel, so do this unconditionally. See gh-5184.
build_requires = ['numpy>=1.6.2']
except:
build_requires = ['numpy>=1.6.2']

Expand Down

0 comments on commit 79a6bd7

Please sign in to comment.