summaryrefslogtreecommitdiff
path: root/numpy/distutils/mingw32ccompiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/mingw32ccompiler.py')
-rw-r--r--numpy/distutils/mingw32ccompiler.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py
index 4da06b65a..bbe2fd7a3 100644
--- a/numpy/distutils/mingw32ccompiler.py
+++ b/numpy/distutils/mingw32ccompiler.py
@@ -279,8 +279,7 @@ def manifest_rc(name, type='dll'):
'exe').
Parameters
- ----------
- name: str
+ ---------- name: str
name of the manifest file to embed
type: str ('dll', 'exe')
type of the binary which will embed the manifest"""
@@ -307,3 +306,10 @@ def check_embedded_msvcr_match_linked(msver):
"Dyscrepancy between linked msvcr " \
"(%d) and the one about to be embedded " \
"(%d)" % (int(msver), maj)
+
+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)
+ exext = self.compiler.exe_extension
+ return root + exect + ".manifest"