summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-12-26 12:16:45 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-12-26 12:16:45 +0000
commit3f82799ae312c903bb6136684214533b5e4673af (patch)
treecc98a2c719f9c1e4bb7446a972f5a73b8b9876ec /numpy
parent8e77ab879c8cb1f25f0245c74bc9bba402c40b51 (diff)
downloadnumpy-3f82799ae312c903bb6136684214533b5e4673af.tar.gz
Update to handle numscons 0.10.0 and above.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/command/scons.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py
index d5303bb29..5f4c42ba4 100644
--- a/numpy/distutils/command/scons.py
+++ b/numpy/distutils/command/scons.py
@@ -361,9 +361,13 @@ class scons(old_build_ext):
try:
minver = "0.9.3"
- from numscons import get_version
- if get_version() < minver:
- raise ValueError()
+ try:
+ # version_info was added in 0.10.0
+ from numscons import version_info
+ except ImportError:
+ from numscons import get_version
+ if get_version() < minver:
+ raise ValueError()
except ImportError:
raise RuntimeError("You need numscons >= %s to build numpy "\
"with numscons (imported numscons path " \