[f2py] trouble with simple example

Brad Reisfeld brad.reisfeld@colostate.edu
Tue, 5 Mar 2002 09:48:17 -0700


Hi,
I am a new user of f2py. I just downloaded and installed the software
(2.13.175-1222) and am trying out the first example in the manual.

I followed the example and generated the 'foo.f' and 'bar.f' files, created
and edited the signature file (f2py foo.f bar.f -m foobar -h foobar.pyf),
and created a C/API module (f2py foobar.pyf). However, as you can see in the
session below, there is no Makefile-foobar created, so I can't proceed to
create the shared module.

What am I missing here?

Also, according to the 'README.txt' file, there should be some tests in a
'test-site' directory that one can run to assure proper functionality. I
couldn't find this directory.

Thanks for your help.

-Brad

----------

$:f2py foobar.pyf
Reading fortran codes...
        Reading file 'foobar.pyf'
Post-processing...
        Block: foobar
                        Block: foo
                        Block: bar
Building modules...
        Building module "foobar"...
                Constructing wrapper function "foo"...
                  foo(a)
                Constructing wrapper function "bar"...
                  bar(a,b)
        Wrote C/API module "foobar" to file "./foobarmodule.c"
Run GNU make to build shared modules: gmake -f Makefile-<modulename> [test]
Or run: python setup_<modulename>.py build
$:ls -aF
./  ../  bar.f  foobarmodule.c  foobar.pyf  foo.f

$:python
Python 2.1.1 (#1, Aug 13 2001, 19:37:40)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-96)] on linux2
Type "copyright", "credits" or "license" for more information.
>>>

----------