diff options
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r-- | numpy/distutils/command/config.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index 144efc550..0019bbb1d 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 + check_embedded_msvcr_match_linked, manifest_name LANG_EXT['f77'] = '.f' LANG_EXT['f90'] = '.f90' @@ -118,7 +118,14 @@ class config(old_config): if msver is not None: if msver >= 8: check_embedded_msvcr_match_linked(msver) - + ma = int(msver) + mi = int((msver - ma) * 10) + # Write the manifest file + manxml = msvc_manifest_xml(ma, mi) + man = open(manifest_name(self), "w") + self.temp_files.append(man) + man.write(manxml) + man.close() return self._wrap_method(old_config._link,lang, (body, headers, include_dirs, libraries, library_dirs, lang)) |