summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/config.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-11-17 12:05:56 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-11-17 12:05:56 +0000
commitcfa01f68bfd00d11bad21d41611c733f2fde8933 (patch)
treec0aec8249e5cdff1ddb8e1e58b72f870765290c4 /numpy/distutils/command/config.py
parent5504fd1da8db7a7f236544f8a8391f7b39a4812a (diff)
downloadnumpy-cfa01f68bfd00d11bad21d41611c733f2fde8933.tar.gz
Generate the xml manifest file.
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r--numpy/distutils/command/config.py11
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))