diff options
author | David Cournapeau <cournape@gmail.com> | 2008-11-17 12:06:58 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-11-17 12:06:58 +0000 |
commit | 3a6c367a0f1cadd8d7d898e04bca148b64d85116 (patch) | |
tree | 2668081749df8f2681b275321fad122934352738 /numpy/distutils/command/config.py | |
parent | e81458d964f20b188b944da833551a8332614ff0 (diff) | |
download | numpy-3a6c367a0f1cadd8d7d898e04bca148b64d85116.tar.gz |
Generate the rc file for manifest embedding.
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r-- | numpy/distutils/command/config.py | 8 |
1 files changed, 7 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)) |