[vtk-developers] Separate vtkPythonConfigure.h
David Partyka
david.partyka at kitware.com
Fri Jul 8 11:58:31 EDT 2011
Very cool :-)
On Fri, Jul 8, 2011 at 11:52 AM, David Gobbi <david.gobbi at gmail.com> wrote:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110708/38b773cb/attachment.html>
More information about the vtk-developers
mailing list