[Numpy-svn] r3900 - trunk/numpy/distutils

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Jul 25 07:42:44 EDT 2007


Author: pearu
Date: 2007-07-25 06:42:39 -0500 (Wed, 25 Jul 2007)
New Revision: 3900

Modified:
   trunk/numpy/distutils/ccompiler.py
Log:
Give a hint when getting "Too many open files" failure.

Modified: trunk/numpy/distutils/ccompiler.py
===================================================================
--- trunk/numpy/distutils/ccompiler.py	2007-07-25 11:21:35 UTC (rev 3899)
+++ trunk/numpy/distutils/ccompiler.py	2007-07-25 11:42:39 UTC (rev 3900)
@@ -36,8 +36,12 @@
         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)
 




More information about the Numpy-svn mailing list