[vtk-developers] Removed "lib" prefix from python modules

Marcus D. Hanwell marcus.hanwell at kitware.com
Fri Sep 24 09:40:50 EDT 2010


On Fri, Sep 24, 2010 at 9:34 AM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi All,
>
> I've made the bold move of removing the "lib" prefix from the python
> modules when they are built in unix-like environments.  So "if os.name
> == 'posix':" in all the .py files that load the modules is no longer
> necessary.
>

I think this is a great change, and it was on my todo list.

>
> In order to minimize the breakage in external packages, I create
> symlinks in the bin directory:
> libvtkCommonPython.so -> vtkCommonPython.so
>
> This means that ParaView will not break (I've tested it) and hopefully
> other packages won't break, either.  However, I'd recommend that all
> external packages switch their .py files and cmake files over to the
> new prefix-less style.
>
> I will take care of that in Titan. Thanks for pushing this in, I never
liked the if/else logic necessary just to load a Python module.

Marcus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100924/81ccdcb7/attachment.html>


More information about the vtk-developers mailing list