[Numpy-tickets] [NumPy] #621: wrapping f95 fails

NumPy numpy-tickets@scipy....
Fri Nov 23 10:45:12 CST 2007


#621: wrapping f95 fails
------------------------+---------------------------------------------------
 Reporter:  jspaans     |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  1.0.5   
Component:  numpy.f2py  |     Version:  none    
 Severity:  major       |    Keywords:          
------------------------+---------------------------------------------------
 When trying to wrap some fortran90 code on my platform (OS X, python2.5
 from macports, gfortran 4.3, using numpy-latest downloaded today) I get an
 error which is fixed by applying the following (obvious) patch:

 {{{
 --- /opt/local/lib/python2.5/site-packages/numpy/f2py/rules.py~ 2007-11-23
 17:36:11.000000000 +0100
 +++ /opt/local/lib/python2.5/site-packages/numpy/f2py/rules.py  2007-11-23
 17:36:11.000000000 +0100
 @@ -1219,7 +1219,7 @@
          f.write('!     This file is autogenerated with f2py
 (version:%s)\n'%(f2py_version))
          f.write('!     It contains Fortran 90 wrappers to fortran
 functions.\n')
          lines = []
 -        for l in '\n\n'.join(funcwrappers2)+'\n'.split('\n'):
 +        for l in ('\n\n'.join(funcwrappers2)+'\n').split('\n'):
              if len(l)>72 and l[0]==' ':
                  lines.append(l[:72]+'&\n     &')
                  l = l[72:]
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/621>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list