summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/code_generators/cversions.py3
-rw-r--r--numpy/core/code_generators/cversions.txt4
-rw-r--r--numpy/core/include/numpy/numpyconfig.h1
3 files changed, 6 insertions, 2 deletions
diff --git a/numpy/core/code_generators/cversions.py b/numpy/core/code_generators/cversions.py
index 020f5f5ae..161dae8d9 100644
--- a/numpy/core/code_generators/cversions.py
+++ b/numpy/core/code_generators/cversions.py
@@ -5,11 +5,12 @@ The API has is defined by numpy_api_order and ufunc_api_order.
"""
from __future__ import division
-from os.path import join, dirname
+from os.path import dirname
from genapi import fullapi_hash
import numpy_api
+
if __name__ == '__main__':
curdir = dirname(__file__)
print fullapi_hash(numpy_api.full_api)
diff --git a/numpy/core/code_generators/cversions.txt b/numpy/core/code_generators/cversions.txt
index 7d3b43d3b..5de3d5dc2 100644
--- a/numpy/core/code_generators/cversions.txt
+++ b/numpy/core/code_generators/cversions.txt
@@ -1,4 +1,6 @@
-# hash below were defined from numpy_api_order.txt and ufunc_api_order.txt
+# Hash below were defined from numpy_api_order.txt and ufunc_api_order.txt
+# When adding a new version here for a new minor release, also add the same
+# version as NPY_x_y_API_VERSION in numpyconfig.h
0x00000001 = 603580d224763e58c5e7147f804dc0f5
0x00000002 = 8ecb29306758515ae69749c803a75da1
0x00000003 = bf22c0d05b31625d2a7015988d61ce5a
diff --git a/numpy/core/include/numpy/numpyconfig.h b/numpy/core/include/numpy/numpyconfig.h
index 702d9952f..5ca171f21 100644
--- a/numpy/core/include/numpy/numpyconfig.h
+++ b/numpy/core/include/numpy/numpyconfig.h
@@ -29,5 +29,6 @@
* #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
*/
#define NPY_1_7_API_VERSION 0x00000007
+#define NPY_1_8_API_VERSION 0x00000008
#endif