Fix setup.py in the presence of no numpy

This commit is contained in:
Steven Silvester
2015-10-30 15:00:56 -05:00
parent 33f7fb9cea
commit 61a78d6c69
+3 -2
View File
@@ -87,14 +87,15 @@ if __name__ == "__main__":
except ImportError:
if len(sys.argv) >= 2 and ('--help' in sys.argv[1:] or
sys.argv[1] in ('--help-commands',
'egg_info', '--version',
'--version',
'clean')):
# For these actions, NumPy is not required.
#
# They are required to succeed without Numpy for example when
# pip is used to install scikit-image when Numpy is not yet
# present in the system.
pass
from setuptools import setup
extra = {}
else:
print('To install scikit-image from source, you will need numpy.\n' +
'Install numpy with pip:\n' +