get_include#
- scikitplot.cexternals._f2py.get_include()[source]#
Return the directory that contains the
fortranobject.cand.hfiles.Note
This function is not needed when building an extension with
numpy.distutilsdirectly from.fand/or.pyffiles in one go.Python extension modules built with f2py-generated code need to use
fortranobject.cas a source file, and include thefortranobject.hheader. This function can be used to obtain the directory containing both of these files.- Returns:
- include_pathstr
Absolute path to the directory containing
fortranobject.candfortranobject.h.
See also
numpy.get_includefunction that returns the numpy include directory
Notes
Added in version 1.21.1.
Unless the build system you are using has specific support for f2py, building a Python extension using a
.pyfsignature file is a two-step process. For a modulemymod:Step 1: run
python -m numpy.f2py mymod.pyf --quiet. This generatesmymodmodule.cand (if needed)mymod-f2pywrappers.ffiles next tomymod.pyf.Step 2: build your Python extension module. This requires the following source files:
mymodmodule.cmymod-f2pywrappers.f(if it was generated in Step 1)fortranobject.c