c_api_prereqs#

scikitplot.cython.c_api_prereqs()[source]#

Check prerequisites for Scenario 5: master, own C-API.

Validates Cython (for .pyx transpilation), NumPy (for numpy/arrayobject.h), and setuptools (for the build extension infrastructure).

Returns:
dict[str, Any]

Keys: cython, numpy, setuptools.

Return type:

dict[str, Any]

Notes

Master user note: use collect_c_api_sources to glob C source trees. Pass the result as extra_sources to scikitplot.cython.compile_and_load.

Examples

>>> result = c_api_prereqs()
>>> all(k in result for k in ("cython", "numpy", "setuptools"))
True