[Numpy-svn] r4755 - branches/build_with_scons

numpy-svn@scip... numpy-svn@scip...
Fri Jan 25 01:08:45 CST 2008


Author: cdavid
Date: 2008-01-25 01:08:41 -0600 (Fri, 25 Jan 2008)
New Revision: 4755

Modified:
   branches/build_with_scons/setupscons.py
Log:
Detect if numscons is not available ASAP in top setupscons.py

Modified: branches/build_with_scons/setupscons.py
===================================================================
--- branches/build_with_scons/setupscons.py	2008-01-25 06:58:46 UTC (rev 4754)
+++ branches/build_with_scons/setupscons.py	2008-01-25 07:08:41 UTC (rev 4755)
@@ -44,6 +44,14 @@
 # a lot more robust than what was previously being used.
 __builtin__.__NUMPY_SETUP__ = True
 
+from distutils.errors import DistutilsError
+try:
+    import numscons
+except ImportError, e:
+    msg = ["You cannot build numpy with scons without the numscons package "]
+    msg.append("(Failure was: %s)" % e)
+    raise DistutilsError('\n'.join(msg))
+
 def configuration(parent_package='',top_path=None):
     from numpy.distutils.misc_util import Configuration
 



More information about the Numpy-svn mailing list