summaryrefslogtreecommitdiff
path: root/numpy/core/cversions.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-05-04 16:17:00 -0600
committerCharles Harris <charlesr.harris@gmail.com>2014-05-04 22:05:45 -0600
commite1bffd6e2772056b6a28cbd9235da4b693865145 (patch)
treef5a91813b38bfd336241970be21394b77711ea4f /numpy/core/cversions.py
parent753149eddd46c1c1823fe3932831b2b914bc8724 (diff)
downloadnumpy-e1bffd6e2772056b6a28cbd9235da4b693865145.tar.gz
MAINT: Move numpy/core/code_generators/cversions.py to numpy/core.
This is done because it runs as a script, hence without context, and this causes problems with imports in the code_generators package. This became apparent when numpy_api.py was changed to import genapi.py from the same package.
Diffstat (limited to 'numpy/core/cversions.py')
-rw-r--r--numpy/core/cversions.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/numpy/core/cversions.py b/numpy/core/cversions.py
new file mode 100644
index 000000000..7995dd993
--- /dev/null
+++ b/numpy/core/cversions.py
@@ -0,0 +1,15 @@
+"""Simple script to compute the api hash of the current API.
+
+The API has is defined by numpy_api_order and ufunc_api_order.
+
+"""
+from __future__ import division, absolute_import, print_function
+
+from os.path import dirname
+
+from code_generators.genapi import fullapi_hash
+from code_generators.numpy_api import full_api
+
+if __name__ == '__main__':
+ curdir = dirname(__file__)
+ print(fullapi_hash(full_api))