summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-01-25 07:08:41 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-01-25 07:08:41 +0000
commitea5fb6f2eecde212e8ebb2524a2f1d0653f6dfdb (patch)
tree0c1d5c5ddadc8ea332c92d0c587a183790580087
parentb11c4f8d2ef1f450eee6944ff972654bb1b5d421 (diff)
downloadnumpy-ea5fb6f2eecde212e8ebb2524a2f1d0653f6dfdb.tar.gz
Detect if numscons is not available ASAP in top setupscons.py
-rwxr-xr-xsetupscons.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/setupscons.py b/setupscons.py
index 3770189fc..25e9f08c6 100755
--- a/setupscons.py
+++ b/setupscons.py
@@ -44,6 +44,14 @@ if os.path.exists('MANIFEST'): os.remove('MANIFEST')
# 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