diff options
author | David Cournapeau <cournape@gmail.com> | 2008-01-25 07:08:41 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-01-25 07:08:41 +0000 |
commit | ea5fb6f2eecde212e8ebb2524a2f1d0653f6dfdb (patch) | |
tree | 0c1d5c5ddadc8ea332c92d0c587a183790580087 | |
parent | b11c4f8d2ef1f450eee6944ff972654bb1b5d421 (diff) | |
download | numpy-ea5fb6f2eecde212e8ebb2524a2f1d0653f6dfdb.tar.gz |
Detect if numscons is not available ASAP in top setupscons.py
-rwxr-xr-x | setupscons.py | 8 |
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 |