diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2007-07-25 11:42:39 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2007-07-25 11:42:39 +0000 |
commit | 1f4f410baef0547e26dc68d1ea3c60d140602a15 (patch) | |
tree | e0af608e3ec27d330d6640fd0a30f46935e1b700 /numpy/distutils/ccompiler.py | |
parent | 1222a4a979ff0d960be0e172c2947f9cce58d5fa (diff) | |
download | numpy-1f4f410baef0547e26dc68d1ea3c60d140602a15.tar.gz |
Give a hint when getting "Too many open files" failure.
Diffstat (limited to 'numpy/distutils/ccompiler.py')
-rw-r--r-- | numpy/distutils/ccompiler.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index ac71d1285..82534c579 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -36,8 +36,12 @@ def CCompiler_spawn(self, cmd, display=None): if is_sequence(cmd): cmd = ' '.join(list(cmd)) print o + if re.search('Too many open files', o): + msg = '\nTry rerunning setup command until build succeeds.' + else: + msg = '' raise DistutilsExecError,\ - 'Command "%s" failed with exit status %d' % (cmd, s) + 'Command "%s" failed with exit status %d%s' % (cmd, s, msg) replace_method(CCompiler, 'spawn', CCompiler_spawn) |