[SciPy-dev] Combining Numpy/C/fortran ?

Berthold Höllmann berthold at xn--hllmanns-n4a.de
Mon Mar 12 17:34:14 EDT 2007


Pierre GM <pgmdevlist at gmail.com> writes:

> On Friday 09 March 2007 06:44:43 John Pye wrote:
>> Maybe this is what you're looking for?
>> http://www.scipy.org/Cookbook/SWIG_and_NumPy
>
> Almost. I guess that should do the trick as long as I stay on the C side. 
> However, how should I write the setup.py so that the required fortran files 
> are compiled properly ? I haven't been able to find any example...
> And as I'm mixing C and fortran, I have to declare the arrays with 
> an "order='F'", right ?

numpy.distutils support compiling Fortran files from setup.py.



-- 



More information about the SciPy-Dev mailing list