[Pythonmac-SIG] Python VTK shared libraries
Robert Kern
rkern at ucsd.edu
Thu Jun 23 05:35:27 CEST 2005
Vladimir Shapovalov wrote:
> Recently I had to install Python interface for VTK. One of the
> problems I ran into was that the shared libraries built for VTK would
> not be seen by Python whatever path I put them into. The only way I
> found to make them visible was to make links in the site-pckages/
> vtk_python directory. In addition, the link to
> libvtkRenderingPythonTkWidgets.dylib had to be named
> libvtkRenderingPythonTkWidgets.so to make it work (otherwise python
> complained it could not find the .so file).
The Python modules should already be .so files that have symbolic links
to them (made by "python setup.py install").
libvtkRenderingPythonTkWidgets.dylib isn't a Python module as far as I
can tell.
> Is there a more graceful solution to keeping the libraries in a more
> appropriate place and still having python find them?
.pth file perhaps, but symbolic links are fine.
Note that there other problems. The .so's and .dylib's point back to the
build directory for the library dependencies. I used macholib from
py2app to rewrite the headers to point to the installation directory.
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Pythonmac-SIG
mailing list