[vtk-developers] Separate vtkPythonConfigure.h

David Gobbi david.gobbi at gmail.com
Fri Jul 8 11:52:32 EDT 2011


Hi All,

I've created a new vtkPythonConfigure.h, and the new vtkPython.h in
VTK master includes this configure file instead of including the main
vtkConfigure.h.  The macros defined in the new file are as follows:

VTK_PYTHON_MAJOR_VERSION
VTK_PYTHON_MINOR_VERSION
VTK_PYTHON_MICRO_VERSION
VTK_PYTHON_VERSION_HEX
VTK_NO_PYTHON_THREADS
VTK_WINDOWS_PYTHON_DEBUGGABLE

The VERSION macros can be used to check what version of python
VTK was configured with.  Now vtkPython.h will throw an error if the
user attempts to compile a different version of python than was used
at configuration time.  Only the first two version numbers are checked,
i.e. it is possible to configure against python 2.6.1 and compile
against python 2.6.5.

These macros have also allowed me to fix a couple dashboard warnings
related to Python.h.

 - David



More information about the vtk-developers mailing list