diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/command/scons.py | 13 |
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. |