[New-bugs-announce] [issue13892] distutils handling of windows manifest isn't optimal
report at bugs.python.org
Fri Jan 27 22:09:25 CET 2012
New submission from Jack Jansen <jackjansen at users.sourceforge.net>:
I found a problem with the handling of manifest files in the msvc9compiler. Distutils removes the reference to the MSVC runtime from the manifest resource, to enable installing the runtime system locally (i.e. to allow non-admins to install Python in their own directory, without needing admin access to the winSxS directory). Embedders of Python are suggested to the manifest for the MSCV runtime to their main program (i.e. the program embedding Python).
This is all a good idea, except for one use case: if you are including Python into a product that is itself a plugin to another product. And, of course, if you need to extend this Python with an extension module. In this case, you have no control over the manifest of the main program (which is the outer embedder). You have control over your own plugin (the one incorporating Python), but this intermediate manifest file is not taken into account when loading the distutils-generated .pyd file.
(imagining the amount of time it took me before I got to this analysis is left as an exercise to the reader:-)
I would suggest an option to distutils to skip the _remove_visual_c_ref() step.
nosy: eric.araujo, jackjansen, tarek
title: distutils handling of windows manifest isn't optimal
versions: Python 2.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce