VTK  9.2.6
vtkModuleWrapPython.cmake File Reference

APIs for wrapping modules for Python. More...

Go to the source code of this file.

Functions

function vtk_module_python_default_destination (var)
 Determine Python module destination.
function _vtk_module_wrap_python_sources (module, sources, classes)
 Generate sources for using a module's classes from Python.
function _vtk_module_wrap_python_library (name)
 Generate a CPython library for a set of modules.
function vtk_module_wrap_python ()
 Wrap a set of modules for use in Python.
function vtk_module_add_python_package (name)
 Install Python packages with a module.
function vtk_module_add_python_module (name)
 Use a Python package as a module.

Detailed Description

APIs for wrapping modules for Python.

Limitations

Known limitations include:

  • Shared Python modules only really support shared builds of modules. VTK does not provide mangling facilities for itself, so statically linking VTK into its Python modules precludes using VTK's C++ interface anywhere else within the Python environment.
  • Only supports CPython. Other implementations are not supported by the VTK::WrapPython executable.
  • Links directly to a Python library. See the VTK::Python module for more details.

Definition in file vtkModuleWrapPython.cmake.