-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust macros and typedefs for Numpy C API
- Define `Py_LIMITED_API` and `NPY_TARGET_VERSION` macros in setup.py rather than in the C source code. - Don't define Numpy's `struct _typeobject` if we are building for PyPy because PyPy doesn't implement Python's limited C API (see liberfa/pyerfa#120). - Define `struct _typeobject` workaround after including Python.h, not before, because on PyPy, Python.h defines the macros that we depend on to detect whether we are building under PyPy. - Use `NPY_TARGET_VERSION` for builds that are backwards-compatible with old versions of Numpy. - Build with any version of Numpy >=1.25 and <2 (see liberfa/pyerfa#121).
- Loading branch information
Showing
3 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters