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

numpy-svn@scip... numpy-svn@scip...
Sun Nov 16 05:45:00 CST 2008


Author: cdavid
Date: 2008-11-16 05:44:54 -0600 (Sun, 16 Nov 2008)
New Revision: 6048

Modified:
   branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py
Log:
Use directly the manifest name for generating the rc file + add docstring.

Modified: branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py
===================================================================
--- branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py	2008-11-16 11:44:33 UTC (rev 6047)
+++ branches/visualstudio_manifest/numpy/distutils/mingw32ccompiler.py	2008-11-16 11:44:54 UTC (rev 6048)
@@ -275,7 +275,15 @@
 
 def manifest_rc(biname, type='dll'):
     """Return the rc file used to generate the res file which will be embedded
-    as manifest for binary biname, of given type ('dll' or 'exe')."""
+    as manifest for given manifest file name, of given type ('dll' or
+    'exe').
+    
+    Parameters
+    ----------
+        name: str
+            name of the manifest file to embed
+        type: str ('dll', 'exe')
+            type of the binary which will embed the manifest"""
     if type == 'dll':
         rctype = 2
     elif type == 'exe':
@@ -285,4 +293,4 @@
 
     return """\
 #include "winuser.h"
-%d RT_MANIFEST %s.manifest""" % (rctype, biname)
+%d RT_MANIFEST %s""" % (rctype, name)



More information about the Numpy-svn mailing list