[vtk-developers] VTKConfig.cmake new values

Prabhu Ramachandran prabhu_r at users.sf.net
Wed Mar 1 07:20:40 EST 2006


>>>>> "David" == David Gobbi <dgobbi at atamai.com> writes:

    David> The VTK_PYTHON_DIRS addition is fairly minor by comparison,
    David> it just contains the directories where the python modules
    David> (pure python and binary) can be found so that it can be
    David> used to set the PYTHONPATH.  Another option would be to set
    David> a VTK_PYTHON_HOME variable instead, similar to the
    David> VTK_TCL_HOME, and generate Wrapping/Python/vtk.pth so that
    David> it points to where the binary modules. This would make it
    David> work similar to the way pkgIndex.tcl works.  Any opinions
    David> on whether the VTK_PYTHON_HOME approach would be
    David> preferable?

Not sure if this is known or if it matters to you or not but vtk.pth
files will only work on certain directories
($prefix/lib/site-packages/pythonX.Y/) and on Debian (also in
/usr/local).  If you stick a .pth on sys.path it is not guaranteed to
get used at all.  Look at site.py to see this (look for addsitedir).

cheers,
prabhu



More information about the vtk-developers mailing list