summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/scons.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-07-30 09:36:40 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-07-30 09:36:40 +0000
commit10ce27cef47b67163137ebeb8a5ca5e99bde39f0 (patch)
tree3ea9cd107ae8e783b4dce8f051402841b4fc7907 /numpy/distutils/command/scons.py
parent39c75c3abae67ad94d670b2056eef700a02fe5f8 (diff)
downloadnumpy-10ce27cef47b67163137ebeb8a5ca5e99bde39f0.tar.gz
More explicit message wrt log level.
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r--numpy/distutils/command/scons.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py
index b486cc6f5..0c66d5fb6 100644
--- a/numpy/distutils/command/scons.py
+++ b/numpy/distutils/command/scons.py
@@ -262,7 +262,9 @@ class scons(old_build_ext):
self.scons_fcompiler = None
self.package_list = None
- self.log_level = None
+
+ # Only critical things
+ self.log_level = 50
def finalize_options(self):
old_build_ext.finalize_options(self)
@@ -439,7 +441,11 @@ class scons(old_build_ext):
st = os.system(cmdstr)
if st:
print "status is %d" % st
- raise DistutilsExecError("Error while executing scons command "\
- "%s (see above)" % cmdstr)
+ 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"""
+ raise DistutilsExecError(msg)
if post_hook:
post_hook()