[Numpy-discussion] f2py - how to use .pyf files?
Robert Kern
robert.kern at gmail.com
Fri Jul 18 19:26:07 EDT 2008
On Fri, Jul 18, 2008 at 18:19, Fernando Perez <fperez.net at gmail.com> wrote:
> On Fri, Jul 18, 2008 at 3:53 PM, Robert Kern <robert.kern at gmail.com> wrote:
>
>> You still need "-m text2", I believe.
>
> Right, thanks. But it still doesn't quite work. Consider a makefile with
>
> lib: seglib.so
>
> seglib.so: Text2.f90
> f2py -c --fcompiler=gnu95 -m seglib Text2.f90
>
> pyf: Text2.f90
> f2py -h seglib.pyf -m seglib Text2.f90 --overwrite-signature
>
> lib2: Text2.f90
> f2py -c --fcompiler=gnu95 seglib.pyf
You still need to have Text2.f90 on the line.
lib2: Text2.f90
f2py -c --fcompiler=gnu95 seglib.pyf Text2.f90
--
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 NumPy-Discussion
mailing list