From 10ce27cef47b67163137ebeb8a5ca5e99bde39f0 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Wed, 30 Jul 2008 09:36:40 +0000 Subject: More explicit message wrt log level. --- numpy/distutils/command/scons.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'numpy/distutils/command/scons.py') 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() -- cgit v1.2.1