Do not try and update scipy on a pip install if already installed

This commit is contained in:
Steven Silvester
2015-07-16 06:22:50 -05:00
parent 8860f8177b
commit a032b9d71a
+7 -1
View File
@@ -63,8 +63,14 @@ if __name__ == "__main__":
try:
from numpy.distutils.core import setup
extra = {'configuration': configuration}
# do not risk updating numpy
# do not risk updating numpy or scipy
INSTALL_REQUIRES = [r for r in INSTALL_REQUIRES if 'numpy' not in r]
try:
import scipy
INSTALL_REQUIRES = [r for r in INSTALL_REQUIRES if 'scipy'
not in r]
except ImportError:
pass
except ImportError:
if len(sys.argv) >= 2 and ('--help' in sys.argv[1:] or
sys.argv[1] in ('--help-commands',