[Numpy-svn] r6058 - branches/visualstudio_manifest/numpy/distutils

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Nov 17 07:05:12 EST 2008


Author: cdavid
Date: 2008-11-17 06:05:01 -0600 (Mon, 17 Nov 2008)
New Revision: 6058

Modified:
   branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py
Log:
Fix string formatting.

Modified: branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py
===================================================================
--- branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py	2008-11-17 12:04:27 UTC (rev 6057)
+++ branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py	2008-11-17 12:05:01 UTC (rev 6058)
@@ -301,9 +301,9 @@
     # embedding
     msvcv = msvc_runtime_library()
     if msvcv:
-        maj = msvcv[5:6]
+        maj = int(msvcv[5:6])
         if not maj == int(msver):
-            raise ValueError, 
+            raise ValueError, \
                   "Dyscrepancy between linked msvcr " \
-                  "(%f) and the one about to be embedded " \
-                  "(%f)" % (int(msver), maj)
+                  "(%d) and the one about to be embedded " \
+                  "(%d)" % (int(msver), maj)




More information about the Numpy-svn mailing list