https://github.com/mcfletch/pyopengl/pull/112 diff --git a/accelerate/src/numpy_formathandler.pyx b/accelerate/src/numpy_formathandler.pyx index 0c01d78e..47dacaa0 100644 --- src/numpy_formathandler.pyx.orig +++ src/numpy_formathandler.pyx @@ -21,8 +21,7 @@ cdef extern from "numpy/arrayobject.h": int PyArray_ISCARRAY_RO( np.ndarray instance ) cdef np.ndarray PyArray_Zeros(int nd, np.Py_intptr_t* dims, np.dtype, int fortran) cdef np.ndarray PyArray_EnsureArray(object) - cdef int PyArray_FillWithScalar(object, object) - cdef void import_array() + cdef int PyArray_FillWithScalar(np.ndarray, object) cdef void* PyArray_DATA( np.ndarray ) cdef int PyArray_NDIM( np.ndarray ) cdef int *PyArray_DIMS( np.ndarray ) @@ -226,4 +225,4 @@ cdef class NumpyHandler(FormatHandler): # Cython numpy tutorial neglects to mention this AFAICS # get segfaults without it -import_array() +np.import_array()