From 6f20d1e7650fbb3ad61855ca5d85dff0aafe2f72 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 17 Jul 2010 15:15:15 +0000 Subject: BUG: core: use PyCapsule objects only on Python >= 3.0, stay with PyCObjects on Python 2.x --- numpy/numarray/include/numpy/libnumarray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/numarray/include') diff --git a/numpy/numarray/include/numpy/libnumarray.h b/numpy/numarray/include/numpy/libnumarray.h index 08fe159f7..c69f10d8e 100644 --- a/numpy/numarray/include/numpy/libnumarray.h +++ b/numpy/numarray/include/numpy/libnumarray.h @@ -40,7 +40,7 @@ static void **libnumarray_API; #endif #endif -#if PY_VERSION_HEX >= 0x02070000 +#if PY_VERSION_HEX >= 0x03000000 #define _import_libnumarray() \ { \ PyObject *module = PyImport_ImportModule("numpy.numarray._capi"); \ -- cgit v1.2.1