[Scipy-svn] r6498 - trunk/scipy/special

scipy-svn@scip... scipy-svn@scip...
Thu Jun 10 05:05:33 CDT 2010


Author: cdavid
Date: 2010-06-10 05:05:33 -0500 (Thu, 10 Jun 2010)
New Revision: 6498

Modified:
   trunk/scipy/special/setup.py
Log:
ENH: barf with a sensical message when get_info is missing.

Modified: trunk/scipy/special/setup.py
===================================================================
--- trunk/scipy/special/setup.py	2010-06-09 17:46:39 UTC (rev 6497)
+++ trunk/scipy/special/setup.py	2010-06-10 10:05:33 UTC (rev 6498)
@@ -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