summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorrgommers <ralf.gommers@googlemail.com>2011-03-09 11:04:22 +0800
committerrgommers <ralf.gommers@googlemail.com>2011-03-10 14:57:58 +0800
commit3882d65c42acf6d5fff8cc9b3f410bb3e49c8af8 (patch)
tree3b5fc64ceb3704aefaa5c3538d3b19fc884cd31a /numpy
parentb94585c25f81d0d90d25d1ce9b2781f478606734 (diff)
downloadnumpy-3882d65c42acf6d5fff8cc9b3f410bb3e49c8af8.tar.gz
BLD: Increase C API version. Necessary because new C API functions were added.
This removes the MismatchCAPIWarning at the beginning of the build.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/code_generators/cversions.txt3
-rw-r--r--numpy/core/setup_common.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/numpy/core/code_generators/cversions.txt b/numpy/core/code_generators/cversions.txt
index 693ff506c..5bccf2cc0 100644
--- a/numpy/core/code_generators/cversions.txt
+++ b/numpy/core/code_generators/cversions.txt
@@ -6,3 +6,6 @@
# version 4 added neighborhood iterators and PyArray_Correlate2
0x00000004 = 3d8940bf7b0d2a4e25be4338c14c3c85
0x00000005 = 77e2e846db87f25d7cf99f9d812076f0
+# Version 6 added new iterator, half float and casting functions,
+# PyArray_CountNonzero, PyArray_NewLikeArray and PyArray_MatrixProduct2.
+0x00000006 = 941534d1afbc085b996141e8027d1d1e
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index 0a4f070f3..e88be40b0 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -29,7 +29,7 @@ C_ABI_VERSION = 0x01000009
# without breaking binary compatibility. In this case, only the C_API_VERSION
# (*not* C_ABI_VERSION) would be increased. Whenever binary compatibility is
# broken, both C_API_VERSION and C_ABI_VERSION should be increased.
-C_API_VERSION = 0x00000005
+C_API_VERSION = 0x00000006
class MismatchCAPIWarning(Warning):
pass