py2exe - COM Server problem
paul.kemp at standardbank.com
Tue Mar 9 09:52:24 CET 2004
Unfortunately I'm stuck with using Python 2.2, and therefore pywin32
build 162, and so I can't use the latest py2exe.
The frustrating thing is, I've had this working before, so I know it
will work under these versions.
I've tried the 'interp' example, but py2exe just reports 'nothing to
Any other ideas?
> I guess that recent changes in pywin32 have broken this (very old) code
> you mention. You should upgrade to Python 2.3 (if you haven't already),
> a recent pywin32 build, and to py2exe 0.5.
> This version of py2exe contains an example COM server in the
> samples\advanced directory - it builds an exe and dll server from the
> win32com.servers.interp com example code.
> Basically, this 3-line setup script is all that you need, there are no
> changes needed to the com server code:
> from distutils.core import setup
> import py2exe
> setup(com_server = ["win32com.servers.interp"])
> You can most certainly make the dist folder much smaller by excluding
> the pywin package from the build:
> python setup.py py2exe --excludes pywin
More information about the Python-list