[New-bugs-announce] [issue4431] Distutils MSVC doesn't create manifest file (with fix)
David Schnur
report at bugs.python.org
Tue Nov 25 21:16:34 CET 2008
New submission from David Schnur <david.schnur at dartware.com>:
This is my first time submitting an issue; sorry if I am doing this
wrong. While attempting to build/install PyOpenSSL on Windows / MSVC,
the mt.exe step failed because it could not find the manifest file that
it was attempting to embed in crypto.pyd. The problem was that link.exe
was not creating the manifest.
The reason why is that distutils only passes link.exe the
/MANIFESTFILE:filename parameter. This tells it where to output the
manifest, but not to actually create the manifest (see http://msdn.microsoft.com/en-us/library/fft52235(VS.80).aspx). You'd
think link could figure out that, if you use /MANIFESTFILE, you want a
manifest, but I guess not ;)
My solution was to add this line to distutils/msvc9compiler.py:
ld_args.append('/MANIFEST')
Right beneath the existing line:
ld_args.append('/MANIFESTFILE:' + temp_manifest)
Hope that helps
----------
components: Distutils
messages: 76424
nosy: dschnur
severity: normal
status: open
title: Distutils MSVC doesn't create manifest file (with fix)
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4431>
_______________________________________
More information about the New-bugs-announce
mailing list