[Cython] Cython 1.6 & compilation failure on MinGW?
mark florisson
markflorisson88 at gmail.com
Mon Jun 11 21:17:49 CEST 2012
On 11 June 2012 20:12, Pauli Virtanen <pav at 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 at 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.
More information about the cython-devel
mailing list