summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/command/scons.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py
index b867080b6..d9f4d8e64 100644
--- a/numpy/distutils/command/scons.py
+++ b/numpy/distutils/command/scons.py
@@ -453,12 +453,14 @@ class scons(old_build_ext):
log.info("======== Executing scons command for pkg %s =========", pkg_name)
st = os.system(cmdstr)
if st:
- print "status is %d" % st
- msg = "Error while executing scons command %s (see above)" \
- % cmdstr
- msg += """
- Try executing the scons command with --log-level option for more detailed
- output, for example --log-level=0; the lowest, the more detailed"""
+ #print "status is %d" % st
+ msg = "Error while executing scons command."
+ msg += " See above for more information.\n"
+ msg += """\
+If you think it is a problem in numscons, you can also try executing the scons
+command with --log-level option for more detailed output of what numscons is
+doing, for example --log-level=0; the lowest the level is, the more detailed
+the output it."""
raise DistutilsExecError(msg)
if post_hook:
post_hook(**{'pkg_name': pkg_name, 'scons_cmd' : self})