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

David Gobbi david.gobbi at gmail.com
Fri Sep 24 10:57:27 EDT 2010


On Fri, Sep 24, 2010 at 8:45 AM, Marcus D. Hanwell
<marcus.hanwell at kitware.com> wrote:
> On Fri, Sep 24, 2010 at 10:29 AM, David Gobbi <david.gobbi at gmail.com> wrote:
>>
>> But here is a caveat: setting PYTHON_MODULE_PREFIX might not be
>> enough because there is a bug in CMake's Modules/FindPythonLibs.cmake.
>> It does not actually set the prefix of the module, it only sets the
>> prefix in the name of the "init" function.  I've fixed this bug in
>> VTK's copy of FindPythonLibs.cmake, and someone should copy
>> my changes from this file into CMake.
>
> I can take a look at that.

Another thing that FindPythonLibs.cmake does not do is set the suffix
to ".pyd" on Windows.  It didn't cross my mind when I was fixing the
file, but since the ".dll" module suffix is officially deprecated by
python, it might be good to have that in FindPythonLibs.cmake instead
of scattered around various CMake files in various projects.

  David



More information about the vtk-developers mailing list