mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 18:25:32 +08:00
Do not try and upgrade larger dependencies on skimage install
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user