get_include#

scikitplot.cexternals._numcpp.get_include()[source]#

Return the absolute path to the NumCpp C++ headers include directory.

Returns:
str

Path to the directory containing C and C++ header files.

Return type:

str

Notes

When using setuptools, for example in setup.py:

import scikitplot.cexternals._numcpp as nc
...
Extension('extension_name', ...
          include_dirs=nc.[get_include()])
...

Examples

>>> import scikitplot.cexternals._numcpp as nc
>>> nc.get_include()
'/path/to/scikitplot/cexternals/_numcpp/include'  # may vary
>>> import importlib.resources
>>> import pathlib
>>> include_dir = pathlib.Path(importlib.resources.files('scikitplot.cexternals._numcpp')) / 'include'