f2py on windows tutorials

Robert Kern robert.kern at gmail.com
Tue Sep 26 21:34:52 CEST 2006

Flavio wrote:
> Its been a while since i Tried this and right now I have no access to a
> windows
> machine to try it and show you the error messages I was getting.
> I was using the latest version of Python Enthouhgt edition. But I was
> trying to compile the fortran code directly with f2py.
> What I would like to have is a setup.py tailored to compile an f2py
> extension on windows. Have you got one of these? if so please send it
> to me and I can certainly figure out the rest.

from numpy.distutils.core import setup, Extension

                              sources=['wrapper.pyf', 'lib1.f', 'lib2.f'],

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Python-list mailing list