[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,

Re: [Numpy-discussion] cython and f2py

2010-07-02 Thread Keith Goodman
On Fri, Jul 2, 2010 at 12:53 PM, Geoffrey Ely g...@usc.edu 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

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: