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

numpy-svn@scip... numpy-svn@scip...
Wed Mar 17 16:04:15 CDT 2010


Author: pearu
Date: 2010-03-17 16:04:15 -0500 (Wed, 17 Mar 2010)
New Revision: 8294

Modified:
   trunk/numpy/distutils/ccompiler.py
Log:
Fix version matcher for cases where version string appears in second line (Intel Visual Compiler, IA-32, Version 11.1)

Modified: trunk/numpy/distutils/ccompiler.py
===================================================================
--- trunk/numpy/distutils/ccompiler.py	2010-03-14 18:44:36 UTC (rev 8293)
+++ trunk/numpy/distutils/ccompiler.py	2010-03-17 21:04:15 UTC (rev 8294)
@@ -400,6 +400,9 @@
 
     """
     def matcher(self, version_string):
+        # version string may appear in the second line, so getting rid
+        # of new lines:
+        version_string = version_string.replace('\n',' ')
         pos = 0
         if start:
             m = re.match(start, version_string)



More information about the Numpy-svn mailing list