[Scipy-tickets] [SciPy] #1707: mio5_utils.pyx cythonizing fails with Cython 0.17

SciPy Trac scipy-tickets@scipy....
Tue Jul 24 16:42:37 CDT 2012


#1707: mio5_utils.pyx cythonizing fails with Cython 0.17
----------------------+-----------------------------------------------------
 Reporter:  rgommers  |       Owner:  mbrett     
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  scipy.io  |     Version:  devel      
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by bfroehle):

 * cc: brad.froehle@… (added)


Comment:

 The fix should be a simple patch (+ recompiling with Cython).  See also
 https://groups.google.com/forum/?fromgroups#!topic/cython-
 users/4EeMY_6ATqs for more background on why this is a compile failure.

 {{{
 --- a/scipy/io/matlab/mio5_utils.pyx
 +++ b/scipy/io/matlab/mio5_utils.pyx
 @@ -409,7 +409,7 @@ cdef class VarReader5:
                  self.cstream.seek(8 - mod8, 1)
          return 0

 -    cpdef inline cnp.ndarray read_numeric(self, int copy=True):
 +    cpdef cnp.ndarray read_numeric(self, int copy=True):
          ''' Read numeric data element into ndarray

          Reads element, then casts to ndarray.
 }}}

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


More information about the Scipy-tickets mailing list