summaryrefslogtreecommitdiff
path: root/numpy/core/SConscript
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-05-13 03:03:13 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-05-13 03:03:13 +0000
commit93aa731a11abd6a6997f83d5e820b9b7a4025780 (patch)
treee55067254331898384abf182419e58582ec6357a /numpy/core/SConscript
parent290e39d71fe9f3e7bc42efabc51716d938425110 (diff)
downloadnumpy-93aa731a11abd6a6997f83d5e820b9b7a4025780.tar.gz
Add the ABI/API version in numpyconfig header for scons build.
Diffstat (limited to 'numpy/core/SConscript')
-rw-r--r--numpy/core/SConscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript
index 73e61f6e6..f09b17618 100644
--- a/numpy/core/SConscript
+++ b/numpy/core/SConscript
@@ -209,6 +209,10 @@ def visibility_define():
numpyconfig_sym.append(('VISIBILITY_HIDDEN', visibility_define()))
+# Add the C API/ABI versions
+numpyconfig_sym.append(('NPY_ABI_VERSION', '0x%.8X' % C_ABI_VERSION))
+numpyconfig_sym.append(('NPY_API_VERSION', '0x%.8X' % C_API_VERSION))
+
# Check whether we need our own wide character support
if not config.CheckDeclaration('Py_UNICODE_WIDE', includes='#include <Python.h>'):
PYTHON_HAS_UNICODE_WIDE = True