|
10 | 10 | from distutils.command.config import LANG_EXT |
11 | 11 | from distutils import log |
12 | 12 | from distutils.file_util import copy_file |
13 | | -from distutils.msvccompiler import get_build_version as get_build_msvc_version |
14 | 13 | from numpy.distutils.exec_command import exec_command |
15 | | -from numpy.distutils.mingw32ccompiler import msvc_manifest_xml, \ |
16 | | - check_embedded_msvcr_match_linked, manifest_name, rc_name, manifest_rc |
| 14 | +from numpy.distutils.mingw32ccompiler import generate_manifest |
17 | 15 |
|
18 | 16 | LANG_EXT['f77'] = '.f' |
19 | 17 | LANG_EXT['f90'] = '.f90' |
@@ -114,24 +112,7 @@ def _link (self, body, |
114 | 112 | log.warn('could not find library %r in directories %s' \ |
115 | 113 | % (libname, library_dirs)) |
116 | 114 | elif self.compiler.compiler_type == 'mingw32': |
117 | | - msver = get_build_msvc_version() |
118 | | - if msver is not None: |
119 | | - if msver >= 8: |
120 | | - check_embedded_msvcr_match_linked(msver) |
121 | | - ma = int(msver) |
122 | | - mi = int((msver - ma) * 10) |
123 | | - # Write the manifest file |
124 | | - manxml = msvc_manifest_xml(ma, mi) |
125 | | - man = open(manifest_name(self), "w") |
126 | | - self.temp_files.append(manxml) |
127 | | - man.write(manxml) |
128 | | - man.close() |
129 | | - # # Write the rc file |
130 | | - # manrc = manifest_rc(manifest_name(self), "exe") |
131 | | - # rc = open(rc_name(self), "w") |
132 | | - # self.temp_files.append(manrc) |
133 | | - # rc.write(manrc) |
134 | | - # rc.close() |
| 115 | + generate_manifest(self) |
135 | 116 | return self._wrap_method(old_config._link,lang, |
136 | 117 | (body, headers, include_dirs, |
137 | 118 | libraries, library_dirs, lang)) |
|
0 commit comments