8000 ENH: Add NumPy declarations to be used by Cython 3.0+ (#16986) · numpy/numpy@e1211b8 · GitHub
[go: up one dir, main page]

Skip to content
10BC0

Commit e1211b8

Browse files
authored
ENH: Add NumPy declarations to be used by Cython 3.0+ (#16986)
* Create copy of numpy.pxd for Cython 3.0 changes and improve it.
1 parent e242859 commit e1211b8

File tree

5 files changed

+1045
-81
lines changed

5 files changed

+1045
-81
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ include test_requirements.txt
1717
recursive-include numpy/random *.pyx *.pxd *.pyx.in *.pxd.in
1818
include numpy/py.typed
1919
include numpy/random/include/*
20-
include numpy/__init__.pxd
20+
include numpy/*.pxd
2121
# Add build support that should go in sdist, but not go in bdist/be installed
2222
# Note that sub-directories that don't have __init__ are apparently not
2323
# included by 'recursive-include', so list those separately
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Add NumPy declarations for Cython 3.0 and later
2+
-----------------------------------------------
3+
4+
The pxd declarations for Cython 3.0 were improved to avoid using deprecated
5+
NumPy C-API features. Extension modules built with Cython 3.0+ that use NumPy
6+
can now set the C macro ``NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION`` to avoid
7+
C compiler warnings about deprecated API usage.

0 commit comments

Comments
 (0)
0