diff options
author | David Cournapeau <cournape@gmail.com> | 2008-08-09 23:55:01 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-08-09 23:55:01 +0000 |
commit | 4db04374b605c4b7a11ff90afc48d169bcefacb9 (patch) | |
tree | d86251bfd97c8abee3f7a0fd484ceaea963129a1 /numpy | |
parent | 3f45817cb3e1b222670793673cf3a5b85ded3190 (diff) | |
download | numpy-4db04374b605c4b7a11ff90afc48d169bcefacb9.tar.gz |
Improve error message when scons command fails.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/command/scons.py | 14 |
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}) |