Christoph Gohlke <cgoh...@uci.edu> added the comment:

> I have some doubts about option #4: it is a very specific use case, and then 
> the whole benefit of issue 4120 is lost

Pythoncom are pywintypes are indeed special cases: Out of the 170 DLL files in 
my Python site-packages directory, these seem to be the only ones built with 
distutils. All other DLLs are apparently built without  Python involvement 
using make, nmake, CMake, or Visual Studio and most of them contain embedded 
manifests, which is the default when using nmake, CMake, or Visual Studio. 
Practically, to make a standalone distribution of any Python 2.6/3.1 
application with external DLL dependencies likely requires to provide external 
manifest files. The issue4120 patch does not change this situation and I don't 
see any sane way to patch Python/distutils that could. The main benefit of the 
issue4120 patch, as I see it, is that PYD files produced by distutils work in a 
standalone distribution without any further attention. 
Msvc9compiler_stripruntimes_revised.patch does not change this.

My reasoning for this patch (besides fixing the bdist_wininst installer issue) 
was to allow the popular pywin32 package to build without changes, and offer a 
way for other extension packages to exclude manifests from DLL files if 
required (apparently not that common). Alternatively one could provide a 
mechanism to embed specific manifests into DLLs. Is that currently possible? 
Then pywin32 setup.py could be fixed.


> Why is putting a separate manifest file next to the DLL not an option?

Because the pythoncom dll is currently installed into the Windows system 
directory. Putting manifest files there will pollute the system directory even 
more and possibly interfere with other system components if not done right (not 
tested). But again, pywin32 setup.py could be fixed to not install the 
DLL/manifest files into the system directory.


Which Python packages other than pywin32 build DLL files via distutils? I don't 
know any.

Can anyone provide a minimal setup.py script and C file that produces a DLL 
file for testing?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7833>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to