Skip to content

Commit

Permalink
Fix installing numpy as a setup-time dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Sep 23, 2013
1 parent b512e49 commit 373c4d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@

# List third-party Python packages that we require
install_requires=install_requires,
setup_requires=setup_requires,

# matplotlib has C/C++ extensions, so it's not zip safe.
# Telling setuptools this prevents it from doing an automatic
Expand Down
4 changes: 4 additions & 0 deletions setupext.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,11 @@ class Numpy(SetupPackage):

@staticmethod
def include_dirs_hook():
import __builtin__
if hasattr(__builtin__, '__NUMPY_SETUP__'):
del __builtin__.__NUMPY_SETUP__
import numpy
reload(numpy)

ext = Extension('test', [])
ext.include_dirs.append(numpy.get_include())
Expand Down

0 comments on commit 373c4d7

Please sign in to comment.