[Scipy-tickets] [SciPy] #1673: interpolate.interpnd build issue on MinGW

SciPy Trac scipy-tickets@scipy....
Mon Jun 11 04:26:55 CDT 2012


#1673: interpolate.interpnd build issue on MinGW
-------------------------------+--------------------------------------------
 Reporter:  rgommers           |       Owner:  pv    
     Type:  defect             |      Status:  new   
 Priority:  highest            |   Milestone:  0.11.0
Component:  scipy.interpolate  |     Version:  devel 
 Keywords:                     |  
-------------------------------+--------------------------------------------

Comment(by pv):

 Cython 1.6 seems to have been a bit buggy release. The symbol
 `__Pyx_PyCFunction_Call` seems to be undefined. This maybe has something
 to do with DLL symbol resolution on Windows. You can try the following
 patch:
 {{{
 diff --git a/scipy/interpolate/interpnd.c b/scipy/interpolate/interpnd.c
 index 638b873..1ad6b6b 100644
 --- a/scipy/interpolate/interpnd.c
 +++ b/scipy/interpolate/interpnd.c
 @@ -10558,6 +10558,10 @@ __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
                                 PyString_AsString(func_name), (void *)op);
  #endif
  }
 +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,
 }}}
 I suspect the same problem occurs also in other Cython files, not only
 interpnd.c ...

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1673#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list