diff options
-rw-r--r-- | numpy/distutils/command/config.py | 8 | ||||
-rw-r--r-- | numpy/distutils/mingw32ccompiler.py | 5 |
2 files changed, 12 insertions, 1 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index 0019bbb1d..9cc457ce5 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -13,7 +13,7 @@ from distutils.file_util import copy_file from distutils.msvccompiler import get_build_version as get_build_msvc_version from numpy.distutils.exec_command import exec_command from numpy.distutils.mingw32ccompiler import msvc_manifest_xml, \ - check_embedded_msvcr_match_linked, manifest_name + check_embedded_msvcr_match_linked, manifest_name, rc_name LANG_EXT['f77'] = '.f' LANG_EXT['f90'] = '.f90' @@ -126,6 +126,12 @@ class config(old_config): self.temp_files.append(man) man.write(manxml) man.close() + # Write the rc file + manrc = manifest_rc(manifest_name(self), "exe") + rc = open(rc_name(self), "w") + self.temp_files.append(rc) + rc.write(manrc) + rc.close() return self._wrap_method(old_config._link,lang, (body, headers, include_dirs, libraries, library_dirs, lang)) diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py index 1e6ee9570..2633064cf 100644 --- a/numpy/distutils/mingw32ccompiler.py +++ b/numpy/distutils/mingw32ccompiler.py @@ -316,3 +316,8 @@ def manifest_name(config): root = configtest_name(config) exext = self.compiler.exe_extension return root + exect + ".manifest" + +def rc_name(config): + # Get configest name (including suffix) + root = configtest_name(config) + return root + ".rc" |