8000 BLD: Increase C API version. Necessary because new C API functions we… · numpy/numpy@3882d65 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3882d65

Browse files
author
rgommers
committed
BLD: Increase C API version. Necessary because new C API functions were added.
This removes the MismatchCAPIWarning at the beginning of the build.
1 parent b94585c commit 3882d65

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

numpy/core/code_generators/cversions.txt

+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66
# version 4 added neighborhood iterators and PyArray_Correlate2
77
0x00000004 = 3d8940bf7b0d2a4e25be4338c14c3c85
88
0x00000005 = 77e2e846db87f25d7cf99f9d812076f0
9+
# Version 6 added new iterator, half float and casting functions,
10+
# PyArray_CountNonzero, PyArray_NewLikeArray and PyArray_MatrixProduct2.
11+
0x00000006 = 941534d1afbc085b996141e8027d1d1e

numpy/core/setup_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# without breaking binary compatibility. In this case, only the C_API_VERSION
3030
# (*not* C_ABI_VERSION) would be increased. Whenever binary compatibility is
3131
# broken, both C_API_VERSION and C_ABI_VERSION should be increased.
32-
C_API_VERSION = 0x00000005
32+
C_API_VERSION = 0x00000006
3333

3434
class MismatchCAPIWarning(Warning):
3535
pass

0 commit comments

Comments
 (0)
0