On Sun, May 23, 2010 at 1:40 AM, Nadav Horesh
I think that line 3405 in _capi.c (svn 8386) should be:
#if PY_VERSION_HEX >= 0x03010000
(At least it looks reasonable considering line 3375, and it solves my problem)
Does the following work? PyCObject is deprecated in 2.7. #if PY_VERSION_HEX >= 0x03010000 m = PyModule_Create(&moduledef); #else m = Py_InitModule("_capi", _libnumarrayMethods); #if PY_VERSION_HEX >= 0x02070000 c_api_object = PyCapsule_New((void *)libnumarray_API, NULL, NULL); if (c_api_object == NULL) { PyErr_Clear(); } #else c_api_object = PyCObject_FromVoidPtr((void *)libnumarray_API, NULL); #endif Chuck
Nadav _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion