Skip to content

Commit

Permalink
Make sure we are using numscons 0.8.0 or above.
Browse files Browse the repository at this point in the history
  • Loading branch information
cournape committed Jun 12, 2008
1 parent 3f04110 commit d46b162
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions numpy/distutils/command/scons.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,16 @@ def run(self):
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
Expand Down

0 comments on commit d46b162

Please sign in to comment.