From a032b9d71aacad8b3c11f68e081df56290d2c1ec Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Thu, 16 Jul 2015 06:22:50 -0500 Subject: [PATCH] Do not try and update scipy on a pip install if already installed --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4eddc149..1337f9d2 100644 --- a/setup.py +++ b/setup.py @@ -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',