Static linking of python wrappers fails with Python 3
The vtk_write_python_modules_header()
function in vtkPythonWrapping.cmake
uses void initXXModule()
as the signature for the init functions, but Python 3 requires PyObject *PyInit_XXModule()
instead. There should be a #if PY_VERSION_HEX < 0x03000000
and an #else
to define both the Python 2 and Python 3 signatures of the init function.