From: Henrik T. <hen...@le...> - 2015-03-12 14:57:17
|
Hi! I'm trying to build a COM server with py2exe, pywin32 and Python 3, but... it's not working. Specifically, if I try to build this old sample (samples\pywin32\com_server), with "py -3 setup.py py2exe", it copies libraries etc. into "dist" but never creates "interp.exe" or "interp.dll": # setup_interp.py # A distutils setup script for the "interp" sample. from distutils.core import setup import py2exe # Don't pull in all this MFC stuff used by the makepy UI. py2exe_options = dict(excludes="pywin,pywin.dialogs,pywin.dialogs.list,win32ui") setup(name="win32com 'interp' sample", com_server=["win32com.servers.interp"], options = dict(py2exe=py2exe_options) ) The Python 2 version, on the other hand, works fine. I'm using py2exe 0.9.2.2 with Python 3.4 and 0.6.9 with Python 2.7. Both installations are 32-bit and use pywin32 version 219. It looks like the parts of py2exe that are supposed to handle COM servers have either been commented out (e.g. those having to do with the "typelibs" option) or removed (boot_com_servers.py), but maybe I'm missing something. How should I go about getting this to work? /Henrik |