diff options
author | David Cournapeau <cournape@gmail.com> | 2008-06-12 10:56:20 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-06-12 10:56:20 +0000 |
commit | d46b16200f21823a1d35deaa7bde283126f67616 (patch) | |
tree | c1f5e5a08f9a052b0c713eec3965fbbfca9fe17d /numpy/distutils/command/scons.py | |
parent | 3f04110ecb03a627cc4e69497c63e683e585b591 (diff) | |
download | numpy-d46b16200f21823a1d35deaa7bde283126f67616.tar.gz |
Make sure we are using numscons 0.8.0 or above.
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r-- | numpy/distutils/command/scons.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py index 72a3a46e4..591643585 100644 --- a/numpy/distutils/command/scons.py +++ b/numpy/distutils/command/scons.py @@ -336,6 +336,16 @@ class scons(old_build_ext): raise RuntimeError("importing numscons failed (error was %s), using " \ "scons within distutils is not possible without " "this package " % str(e)) + + try: + from numscons import get_version + if get_version() < '0.8.0': + raise ValueError() + except ImportError, ValueError: + raise RuntimeError("You need numscons >= 0.8.0 to build numpy "\ + "with numscons (imported numscons path " \ + "is %s)." % numscons.__file__) + else: # nothing to do, just leave it here. return |