[Numpy-svn] r5571 - trunk/numpy/distutils/command

numpy-svn@scip... numpy-svn@scip...
Wed Jul 30 04:36:43 CDT 2008


Author: cdavid
Date: 2008-07-30 04:36:40 -0500 (Wed, 30 Jul 2008)
New Revision: 5571

Modified:
   trunk/numpy/distutils/command/scons.py
Log:
More explicit message wrt log level.

Modified: trunk/numpy/distutils/command/scons.py
===================================================================
--- trunk/numpy/distutils/command/scons.py	2008-07-30 08:22:42 UTC (rev 5570)
+++ trunk/numpy/distutils/command/scons.py	2008-07-30 09:36:40 UTC (rev 5571)
@@ -262,8 +262,10 @@
         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)
         if self.distribution.has_scons_scripts():
@@ -439,7 +441,11 @@
             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()



More information about the Numpy-svn mailing list