bundles / numpy 2.5.0.dev0+git20251130.2de293a / docs
Doc
System configuration
docs/reference:c-api:config
When NumPy is built, information about system configuration is recorded, and is made available for extension modules using NumPy's C API. These are mostly defined in numpyconfig.h (included in ndarrayobject.h). The public symbols are prefixed by NPY_*. NumPy also offers some functions for querying information about the platform in use.
For private use, NumPy also constructs a config.h in the NumPy include directory, which is not exported by NumPy (that is a python extension which use the numpy C API will not see those symbols), to avoid namespace pollution.
Data type sizes
The NPY_SIZEOF_{CTYPE} constants are defined so that sizeof information is available to the pre-processor.