help with py2exe (and vtkpython)

Marcus Stojek stojek at part-gmbh.de
Tue May 21 12:31:03 EDT 2002


Hi,

some time ago (Python 2.1, py2exe.0.3.1) I have written a little
application to view 3d data with vtk (ver3.0). I have imported:

from wxPython.lib import vtk
from vtkpython import *

and built:

# setup.py
from distutils.core import setup
import py2exe
setup(name="Viewer",scripts=["Viewer.py"],)

this produced two neat dlls, (vtk.dll and vtkpyhon.dll) and everything
worked just fine. As fas as i understand from looking at vtkpyton.py
all this moduls does is providing the names of the required vtkdlls
that have to be imported.

Now, (Python 2.2, py2exe0.3.3) the same thing doesn't work any more.
instead of importing vtkpython I have to list all dlls explicitly.
Otherwise not a single vtk***.dll is imported. Furthermore, if I
include these dlls they are just copied into the /dist directory and
are not collected into one or two files as before. 

Any hints what I'm missing ?

Thanks in advance
Marcus








More information about the Python-list mailing list