summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-11-16 11:44:54 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-11-16 11:44:54 +0000
commitc74c27396eff683e66c02bb0ade0745378d02f1d (patch)
tree7de30bb5f67e07af1dbc90d6b20fe399f63f40c6 /numpy/distutils
parentf0465252ddecd0625c3de2034a7540e2465baeba (diff)
downloadnumpy-c74c27396eff683e66c02bb0ade0745378d02f1d.tar.gz
Use directly the manifest name for generating the rc file + add docstring.
Diffstat (limited to 'numpy/distutils')
-rw-r--r--numpy/distutils/mingw32ccompiler.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py
index fdb215865..566183a80 100644
--- a/numpy/distutils/mingw32ccompiler.py
+++ b/numpy/distutils/mingw32ccompiler.py
@@ -275,7 +275,15 @@ def msvc_manifest_xml(maj, min):
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 @@ def manifest_rc(biname, type='dll'):
return """\
#include "winuser.h"
-%d RT_MANIFEST %s.manifest""" % (rctype, biname)
+%d RT_MANIFEST %s""" % (rctype, name)