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

numpy-svn@scip... numpy-svn@scip...
Sat Aug 9 18:55:01 CDT 2008


Author: cdavid
Date: 2008-08-09 18:55:01 -0500 (Sat, 09 Aug 2008)
New Revision: 5624

Modified:
   trunk/numpy/distutils/command/scons.py
Log:
Improve error message when scons command fails.

Modified: trunk/numpy/distutils/command/scons.py
===================================================================
--- trunk/numpy/distutils/command/scons.py	2008-08-08 04:58:32 UTC (rev 5623)
+++ trunk/numpy/distutils/command/scons.py	2008-08-09 23:55:01 UTC (rev 5624)
@@ -453,12 +453,14 @@
                     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})



More information about the Numpy-svn mailing list