[Scipy-svn] r6505 - branches/0.8.x/scipy/special

scipy-svn@scip... scipy-svn@scip...
Wed Jun 16 05:59:18 CDT 2010


Author: rgommers
Date: 2010-06-16 05:59:18 -0500 (Wed, 16 Jun 2010)
New Revision: 6505

Modified:
   branches/0.8.x/scipy/special/setup.py
Log:
ENH: backport of r6498. Barf with a sensical message when get_info is missing.

Modified: branches/0.8.x/scipy/special/setup.py
===================================================================
--- branches/0.8.x/scipy/special/setup.py	2010-06-16 10:59:02 UTC (rev 6504)
+++ branches/0.8.x/scipy/special/setup.py	2010-06-16 10:59:18 UTC (rev 6505)
@@ -4,8 +4,15 @@
 import sys
 from os.path import join
 from distutils.sysconfig import get_python_inc
-from numpy.distutils.misc_util import get_numpy_include_dirs, get_info
+import numpy
+from numpy.distutils.misc_util import get_numpy_include_dirs
 
+try:
+    from numpy.distutils.misc_util import get_info
+except ImportError:
+    raise ValueError("numpy >= 1.4 is required (detected %s from %s)" % \
+                     (numpy.__version__, numpy.__file__))
+
 def configuration(parent_package='',top_path=None):
     from numpy.distutils.misc_util import Configuration
     config = Configuration('special', parent_package, top_path)



More information about the Scipy-svn mailing list