numpy  2.0.0
include/numpy/numpyconfig.h File Reference
#include "_numpyconfig.h"

Go to the source code of this file.

Defines

#define NPY_1_7_API_VERSION   0x00000007
#define NPY_1_8_API_VERSION   0x00000008
#define NPY_1_9_API_VERSION   0x00000008
#define NPY_1_10_API_VERSION   0x00000008
#define NPY_1_11_API_VERSION   0x00000008
#define NPY_1_12_API_VERSION   0x00000008

Define Documentation

#define NPY_1_10_API_VERSION   0x00000008
#define NPY_1_11_API_VERSION   0x00000008
#define NPY_1_12_API_VERSION   0x00000008
#define NPY_1_7_API_VERSION   0x00000007
On Mac OS X, because there is only one configuration stage for all the archs in universal builds, any macro which depends on the arch needs to be hardcoded
To help with the NPY_NO_DEPRECATED_API macro, we include API version numbers for specific versions of NumPy. To exclude all API that was deprecated as of 1.7, add the following before #including any NumPy headers:

System Message: ERROR/3 (<string>, line 6) Unexpected indentation.

<blockquote> #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION</blockquote>

#define NPY_1_8_API_VERSION   0x00000008
#define NPY_1_9_API_VERSION   0x00000008