Re: [Numpy-discussion] cython and f2py

2010-07-05 Thread Geoffrey Ely
On Jul 2, 2010, at 1:07 PM, Matthew Brett wrote: >> Can numpy.distutils be directed to process *.pyx with Cython rather than >> Pyrex? > > Yes, but at the moment I believe you have to monkey-patch numpy > distutils : see the top of > > http://github.com/matthew-brett/nipy/blob/master/setup.py >

Re: [Numpy-discussion] cython and f2py

2010-07-02 Thread Matthew Brett
Hi, > Can numpy.distutils be directed to process *.pyx with Cython rather than > Pyrex? Yes, but at the moment I believe you have to monkey-patch numpy distutils : see the top of http://github.com/matthew-brett/nipy/blob/master/setup.py and "generate_a_pyrex_source" around line 289 of: http:/

Re: [Numpy-discussion] cython and f2py

2010-07-02 Thread Keith Goodman
On Fri, Jul 2, 2010 at 12:53 PM, Geoffrey Ely wrote: > Hi All, > > Sorry if this has been documented or discussed already, but my searches have > come up short. Can someone please recommend a way to setup both Cython and > Fortran extensions in a single package with numpy.distutils (or something

[Numpy-discussion] cython and f2py

2010-07-02 Thread Geoffrey Ely
Hi All, Sorry if this has been documented or discussed already, but my searches have come up short. Can someone please recommend a way to setup both Cython and Fortran extensions in a single package with numpy.distutils (or something else)? E.g.: from numpy.distutils.core import setup, Extensi