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

numpy-svn@scip... numpy-svn@scip...
Mon Nov 17 06:06:39 CST 2008


Author: cdavid
Date: 2008-11-17 06:06:26 -0600 (Mon, 17 Nov 2008)
New Revision: 6061

Modified:
   branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py
Log:
Separate function to get the configtest name.

Modified: branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py
===================================================================
--- branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py	2008-11-17 12:05:56 UTC (rev 6060)
+++ branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py	2008-11-17 12:06:26 UTC (rev 6061)
@@ -307,9 +307,12 @@
                   "(%d) and the one about to be embedded " \
                   "(%d)" % (int(msver), maj)
 
+def configtest_name(config):
+    base = os.path.basename(config._gen_temp_sourcefile("yo", [], lang))
+    return os.path.splitext(base)[0]
+       
 def manifest_name(config):
     # Get configest name (including suffix)  
-    base = os.path.basename(config._gen_temp_sourcefile("yo", [], lang))
-    root, ext = os.path.splitext(base)
+    root = configtest_name(config)
     exext = self.compiler.exe_extension
     return root + exect + ".manifest"



More information about the Numpy-svn mailing list