summaryrefslogtreecommitdiff
path: root/scipy_distutils/ccompiler.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2004-03-26 18:11:27 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2004-03-26 18:11:27 +0000
commit540903640fe0f8bc6be30294f4a213f98676bfcf (patch)
tree9fc632be156a1e00c00f38a44a7bb79f43a746f4 /scipy_distutils/ccompiler.py
parent0d3f9d2ec9b74efde4025961fa79a62c2515ef18 (diff)
downloadnumpy-540903640fe0f8bc6be30294f4a213f98676bfcf.tar.gz
Be verbose when command returns failure status.
Diffstat (limited to 'scipy_distutils/ccompiler.py')
-rw-r--r--scipy_distutils/ccompiler.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/scipy_distutils/ccompiler.py b/scipy_distutils/ccompiler.py
index 797673f04..afc665b21 100644
--- a/scipy_distutils/ccompiler.py
+++ b/scipy_distutils/ccompiler.py
@@ -23,12 +23,10 @@ def CCompiler_spawn(self, cmd, display=None):
if type(cmd) is type([]) and os.name == 'nt':
cmd = _nt_quote_args(cmd)
s,o = exec_command(cmd)
- if os.name != 'posix':
- print " ".join(cmd)
- print o
if s:
if type(cmd) is type([]):
cmd = ' '.join(cmd)
+ print o
raise DistutilsExecError,\
'Command "%s" failed with exit status %d' % (cmd, s)
CCompiler.spawn = new.instancemethod(CCompiler_spawn,None,CCompiler)