We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4af0bab + 2560870 commit 6846da9Copy full SHA for 6846da9
12 files changed
doc/release/upcoming_changes/23919.c_api_removal.rst
@@ -0,0 +1,6 @@
1
+* ``npy_interrupt.h`` and the corresponding macros like ``NPY_SIGINT_ON``
2
+ have been removed. We recommend querying ``PyErr_CheckSignals()`` or
3
+ ``PyOS_InterruptOccurred()`` periodically. (These do currently require
4
+ holding the GIL though).
5
+* The ``noprefix.h`` header has been removed, replace missing symbols with
6
+ their prefixed counterparts (usually an added ``NPY_`` or ``npy_``).
numpy/__init__.cython-30.pxd
@@ -706,8 +706,6 @@ cdef extern from "numpy/arrayobject.h":
706
int PyArray_ClipmodeConverter (object, NPY_CLIPMODE *) except 0
707
#int PyArray_OutputConverter (object, ndarray*) except 0
708
object PyArray_BroadcastToShape (object, npy_intp *, int)
709
- void _PyArray_SigintHandler (int)
710
- void* _PyArray_GetSigintBuf ()
711
#int PyArray_DescrAlignConverter (object, dtype*) except 0
712
#int PyArray_DescrAlignConverter2 (object, dtype*) except 0
713
int PyArray_SearchsideConverter (object, void *) except 0
numpy/__init__.pxd
@@ -664,8 +664,6 @@ cdef extern from "numpy/arrayobject.h":
664
665
666
667
668
669
670
671
numpy/core/code_generators/cversions.txt
@@ -73,4 +73,4 @@
73
0x00000011 = ca1aebdad799358149567d9d93cbca09
74
75
# Version 18 (NumPy 2.0.0)
76
-0x00000012 = 877c68ac06924a4e7cbd3cd5c9342efd
+0x00000012 = 84ccd4605c1ef315af287637a706b0fc
numpy/core/code_generators/numpy_api.py
@@ -98,7 +98,7 @@ def get_annotations():
98
# define _PyArrayScalar_BoolValues ((PyBoolScalarObject *)PyArray_API[8])
99
100
multiarray_funcs_api = {
101
- '__unused_indices__': [67, 68, 163, 164, 278],
+ '__unused_indices__': [67, 68, 163, 164, 201, 202, 278],
102
'PyArray_GetNDArrayCVersion': (0,),
103
'PyArray_SetNumericOps': (40,),
104
'PyArray_GetNumericOps': (41,),
@@ -261,8 +261,8 @@ def get_annotations():
261
'PyArray_ClipmodeConverter': (198,),
262
'PyArray_OutputConverter': (199,),
263
'PyArray_BroadcastToShape': (200,),
264
- '_PyArray_SigintHandler': (201,),
265
- '_PyArray_GetSigintBuf': (202,),
+ # Unused slot 201, was `_PyArray_SigintHandler`
+ # Unused slot 202, was `_PyArray_GetSigintBuf`
266
'PyArray_DescrAlignConverter': (203,),
267
'PyArray_DescrAlignConverter2': (204,),
268
'PyArray_SearchsideConverter': (205,),
numpy/core/include/meson.build
@@ -7,13 +7,11 @@ installed_headers = [
7
'numpy/halffloat.h',
8
'numpy/ndarrayobject.h',
9
'numpy/ndarraytypes.h',
10
- 'numpy/noprefix.h',
11
'numpy/npy_1_7_deprecated_api.h',
12
'numpy/npy_3kcompat.h',
13
'numpy/npy_common.h',
14
'numpy/npy_cpu.h',
15
'numpy/npy_endian.h',
16
- 'numpy/npy_interrupt.h',
17
'numpy/npy_math.h',
18
'numpy/npy_no_deprecated_api.h',
19
'numpy/npy_os.h',
numpy/core/include/numpy/arrayobject.h
@@ -3,10 +3,5 @@
#define Py_ARRAYOBJECT_H
#include "ndarrayobject.h"
-#include "npy_interrupt.h"
-
-#ifdef NPY_NO_PREFIX
-#include "noprefix.h"
-#endif
#endif /* NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_ */
numpy/core/include/numpy/noprefix.h
numpy/core/include/numpy/npy_interrupt.h
numpy/core/setup.py
@@ -809,8 +809,6 @@ def get_mathlib_info(*args):
809
join('include', 'numpy', '_neighborhood_iterator_imp.h'),
810
join('include', 'numpy', 'npy_endian.h'),
811
join('include', 'numpy', 'arrayscalars.h'),
812
- join('include', 'numpy', 'noprefix.h'),
813
- join('include', 'numpy', 'npy_interrupt.h'),
814
join('include', 'numpy', 'npy_3kcompat.h'),
815
join('include', 'numpy', 'npy_math.h'),
816
join('include', 'numpy', 'halffloat.h'),
0 commit comments