[vtk-developers] Fixing VTK Python Installation
Sander Niemeijer
niemeijer at science-and-technology.nl
Thu Aug 11 14:09:09 EDT 2005
Hi,
On donderdag, aug 11, 2005, at 19:24 Europe/Amsterdam, Brad King wrote:
> 1.) If more than one version of VTK is installed (say 5.0 and 5.2) how
> can the desired version be selected by python? In tcl one can write
>
> package require -exact vtk 5.0
>
> or
>
> package require -exact vtk 5.2
>
> and the proper version will be loaded. This is because things get
> installed to PREFIX/lib/vtk-<version> and PREFIX/lib is automatically
> added to the TCLLIBPATH by Tcl. The pkgIndex.tcl file installed for
> each VTK version specifies that it provides a certain version of VTK.
>
> What is the python equivalent for this? If everything goes in
> site-packages how can multiple versions be installed?
You might want to have a look at the way wxPython handles this. About a
year ago they added a way to keep multiple versions of wxPython
installed and select/load the appropriate version at runtime:
http://wxpython.org/MigrationGuide.html#multi-version-installs
http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/wxPython/wxversion/
Best regards,
Sander
More information about the vtk-developers
mailing list