Do not try and upgrade larger dependencies on skimage install

This commit is contained in:
Steven Silvester
2015-07-16 06:32:20 -05:00
parent a032b9d71a
commit 6c32be45a6
+8 -8
View File
@@ -63,14 +63,14 @@ if __name__ == "__main__":
try:
from numpy.distutils.core import setup
extra = {'configuration': configuration}
# 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
# Do not try and upgrade larger dependencies
for lib in ['scipy', 'numpy', 'matplotlib', 'pillow']:
try:
__import__(lib)
INSTALL_REQUIRES = [i for i in INSTALL_REQUIRES
if lib not in i]
except ImportError:
pass
except ImportError:
if len(sys.argv) >= 2 and ('--help' in sys.argv[1:] or
sys.argv[1] in ('--help-commands',