summaryrefslogtreecommitdiff
path: root/numpy/distutils/command
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-04-13 21:26:04 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-04-13 21:26:04 +0000
commit221f6d7b1a3d831bf189d2ef8a9209780fcd4945 (patch)
treef2ab02e01e808a40735aaba8f82c089305ce4579 /numpy/distutils/command
parent1a18d623be2341f596025ad4e1544c36484ac700 (diff)
downloadnumpy-221f6d7b1a3d831bf189d2ef8a9209780fcd4945.tar.gz
Add one more level for silent modes in scons command.
Diffstat (limited to 'numpy/distutils/command')
-rw-r--r--numpy/distutils/command/scons.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py
index 557f55ee3..fa7cba530 100644
--- a/numpy/distutils/command/scons.py
+++ b/numpy/distutils/command/scons.py
@@ -185,8 +185,8 @@ class scons(old_build_ext):
"specify number of worker threads when executing scons"),
('scons-tool-path=', None, 'specify additional path '\
'(absolute) to look for scons tools'),
- ('silent=', None, 'specify whether scons output should be silent '\
- '(1), super silent (2) or not (0, default)')]
+ ('silent=', None, 'specify whether scons output should less verbose'\
+ '(1), silent (2), super silent (3) or not (0, default)')]
def initialize_options(self):
old_build_ext.initialize_options(self)
@@ -320,10 +320,11 @@ class scons(old_build_ext):
cmd.append('include_bootstrap=%s' % dirl_to_str(get_numpy_include_dirs()))
if self.silent:
- if int(self.silent) == 1:
+ if int(self.silent) == 2:
cmd.append('-Q')
- elif int(self.silent) == 2:
+ elif int(self.silent) == 3:
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)
st = os.system(cmdstr)