Skip to content

Commit

Permalink
Merge pull request numpy#7956 from rgommers/numpysetup
Browse files Browse the repository at this point in the history
BLD: remove __NUMPY_SETUP__ from builtins at end of setup.py
  • Loading branch information
charris authored Sep 3, 2016
2 parents 3dbbfd8 + bbee747 commit a08ed82
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 @@ -388,3 +388,8 @@ def setup_package():

if __name__ == '__main__':
setup_package()
# This may avoid problems where numpy is installed via ``*_requires`` by
# setuptools, the global namespace isn't reset properly, and then numpy is
# imported later (which will then fail to load numpy extension modules).
# See gh-7956 for details
del builtins.__NUMPY_SETUP__

0 comments on commit a08ed82

Please sign in to comment.