summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/scons.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-04-21 10:54:01 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-04-21 10:54:01 +0000
commita37458b57cda4d1eb242c740699d9bd76a03643b (patch)
tree658681bb4631e63c5a11d7c8a727e02d9ca9ca7c /numpy/distutils/command/scons.py
parent9e68e5d18e4cb63a26a655a433d700bf61e0548f (diff)
downloadnumpy-a37458b57cda4d1eb242c740699d9bd76a03643b.tar.gz
Do not show the whole scons command for silent modes.
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r--numpy/distutils/command/scons.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py
index fa7cba530..75350fb84 100644
--- a/numpy/distutils/command/scons.py
+++ b/numpy/distutils/command/scons.py
@@ -326,7 +326,10 @@ class scons(old_build_ext):
cmd.append('-s')
cmd.append('silent=%d' % int(self.silent))
cmdstr = ' '.join(cmd)
- log.info("Executing scons command (pkg is %s): %s ", pkg_name, cmdstr)
+ if int(self.silent) < 1:
+ log.info("Executing scons command (pkg is %s): %s ", pkg_name, cmdstr)
+ else:
+ log.info("Executing scons command for pkg %s", pkg_name)
st = os.system(cmdstr)
if st:
print "status is %d" % st