summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-01-25 06:58:46 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-01-25 06:58:46 +0000
commitb11c4f8d2ef1f450eee6944ff972654bb1b5d421 (patch)
treec64d9b9ae1018469725c6b262fc2e9a226e3a302 /numpy
parent230b4b692503347747d898cd082f69f52de14555 (diff)
downloadnumpy-b11c4f8d2ef1f450eee6944ff972654bb1b5d421.tar.gz
Return as soon as possible of no sconscripts is detected in scons command, to
avoid importing numscons when not needed
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/command/scons.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py
index e98e4bf85..43fe8178f 100644
--- a/numpy/distutils/command/scons.py
+++ b/numpy/distutils/command/scons.py
@@ -273,6 +273,9 @@ 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))
+ else:
+ # nothing to do, just leave it here.
+ return
# XXX: when a scons script is missing, scons only prints warnings, and
# does not return a failure (status is 0). We have to detect this from
# distutils (this cannot work for recursive scons builds...)