Hello, I have resolved my problem with f2py.
First, installed python2.5. "sudo port install python2.5" Then I linked python. "cd /opt/local/bin ; sudo ln -s python2.5 python" Then I installed numpy. "sudo port install py25-numpy" Then I modified the linker flags. In /opt/local/lib/python2.5/site-packages/numpy/distutils/fcompiler/g95.py I changed line 24 from 'linker_so' : ["<F90>","-static"], to 'linker_so' : ["<F90>","-dynamiclib -L/opt/local/lib -lpython2.5"], Then I compiled a test program. f2py25 -c -m hello hello.f90 I was able to import and run it (see http://www.scipy.org/F2py). See hello.f90 below. I have not done any further testing. I have submitted a bug report. JIm cat hello.f90: subroutine foo(a) implicit none integer :: a write(*,*) "Hello from Fortran!" write(*,*) "a =", a end subroutine foo ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users