Andreas Voellmy wrote: > Hello, I'm new to the list. > > I'm wondering if anyone on the list has any experience using f2py > (http://cens.ioc.ee/projects/f2py2e/) on the mac os x? I would like > to use it so that I can access functions written in fortran in > python. I'm having trouble getting it working on tiger. I'm just > working on the hello world example and haven't gotten it to compile > correctly yet. > > gcc in mac os x apparently has the fortran compiler removed or turned > off. So I am using a port of gfortran to compile my fortran. i've > gotten f2py to compile a shared library using gfortran, but when I > load it into python it has a fatal error and suggests that i may not > have compiled the library under the right version. This makes sense. > I compiled with gfortran, part of gcc 4.0, while python on my mac is > compiled under gcc 3.4. I haven't yet been able to get around this > issue.
It works very well using g77-3.4 from http://hpc.sf.net with gcc-3.3 on Tiger. The gfortran support is a little flaky, I believe. Hell, gfortran is a little flaky. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig