From 221f6d7b1a3d831bf189d2ef8a9209780fcd4945 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Sun, 13 Apr 2008 21:26:04 +0000 Subject: Add one more level for silent modes in scons command. --- numpy/distutils/command/scons.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'numpy/distutils/command') 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) -- cgit v1.2.1