summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-07-09 06:02:36 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-07-09 06:02:36 +0000
commit06e999f3a8b458684b4cd9677417f799caf02585 (patch)
treed7518e21930e8f986d17eb8972f64952e9a78844
parent15e2c1af93e75907a33b7361fa55ab2473ff50e9 (diff)
downloadnumpy-06e999f3a8b458684b4cd9677417f799caf02585.tar.gz
Bump min version for numscons to 0.8.2.
-rw-r--r--numpy/distutils/command/scons.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py
index 672a13acb..2a1814ffb 100644
--- a/numpy/distutils/command/scons.py
+++ b/numpy/distutils/command/scons.py
@@ -341,13 +341,18 @@ class scons(old_build_ext):
"this package " % str(e))
try:
+ minver = "0.8.2"
from numscons import get_version
- if get_version() < '0.8.0':
+ if get_version() < minver:
raise ValueError()
- except ImportError, ValueError:
- raise RuntimeError("You need numscons >= 0.8.0 to build numpy "\
+ except ImportError:
+ raise RuntimeError("You need numscons >= %s to build numpy "\
"with numscons (imported numscons path " \
- "is %s)." % numscons.__file__)
+ "is %s)." % (minver, numscons.__file__))
+ except ValueError:
+ raise RuntimeError("You need numscons >= %s to build numpy "\
+ "with numscons (detected %s )" \
+ % (minver, get_version()))
else:
# nothing to do, just leave it here.