On 11 June 2012 20:12, Pauli Virtanen <p...@iki.fi> wrote: > Hi, > > We ran with Scipy to a compilation failure on MinGW in Cython code: > > http://projects.scipy.org/scipy/ticket/1673 > > interpnd.c:10580: error: initializer element is not constant > interpnd.c:10580: error: (near initialization for > `__pyx_CyFunctionType_type.tp_call') > > Can be fixed like this: > > ... > +static PyObject *__Pyx_PyCFunction_Call_wrap(PyObject *a, PyObject *b, > PyObject *c) > +{ > + return __Pyx_PyCFunction_Call(a, b, c); > +} > static PyTypeObject __pyx_CyFunctionType_type = { > PyVarObject_HEAD_INIT(0, 0) > __Pyx_NAMESTR("cython_function_or_method"), > @@ -10577,7 +10581,7 @@ static PyTypeObject __pyx_CyFunctionType_type = { > 0, > 0, > 0, > - __Pyx_PyCFunction_Call, > + __Pyx_PyCFunction_Call_wrap, > 0, > 0, > 0, > ... > > > It's a bit surprising to me that you cannot use the function from the > Python headers as a static initializer on that platform... > > -- > Pauli Virtanen > > _______________________________________________ > cython-devel mailing list > cython-devel@python.org > http://mail.python.org/mailman/listinfo/cython-devel
Thanks, could you provide a pull request? That makes it easier to merge and assign credit. _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel