petsc4py.get_include#

petsc4py.get_include()#

Return the directory in the package that contains header files.

Extension modules that need to compile against petsc4py should use this function to locate the appropriate include directory.

Example

Using Python distutils or NumPy distutils:

import petsc4py
Extension('extension_name', ...
          include_dirs=[..., petsc4py.get_include()])
Return type:

str