[Python-de] py2exe / ZODB / wxpython
Harald Armin Massa
haraldarminmassa at gmail.com
Mon Jan 10 16:43:04 CET 2005
Hallo Thomas,
zodb und py2exe ist nicht einfach.
Ich habe am Anfang meines setup.py, vor dem Aufruf von setup folgendes
eingebaut:
# ModuleFinder can't handle runtime changes to __path__, but win32com uses them,
# particularly for people who build from sources. Hook this in.
try:
import modulefinder
import win32com
import ZODB
for p in win32com.__path__[1:]:
modulefinder.AddPackagePath("win32com", p)
for extra in ["win32com.shell"]: #,"win32com.mapi"
__import__(extra)
m = sys.modules[extra]
for p in m.__path__[1:]:
modulefinder.AddPackagePath(extra, p)
except ImportError:
# no build path setup, no worries.
pass
und seither funktioniert das. Kopiert habe ich das damals m.W. bei
Mark Hammonds setup.py für die Outlook-Erweiterung
Gruß,
Harald
--
GHUM Harald Massa
Harald Armin Massa
Reinsburgstraße 202b
70197 Stuttgart
0173/9409607