[f2py] Can't get Enthought python to work with f2py

charlie strauss <[email protected]>
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
I just installed the latest enthought python distro and now my f2py  
won't compile.

I think the problem is that the enthought f2py is trying to use the  
fink or macports  gfortran.  But I don't know how to tell it not to.

if I run ipython from fink then the programs do compile.

the specific error that occurs from the enthought f2py is that it does  
not like the --arch command line flag that f2py places on the compile  
command.  So another way to try solving this is to somehow adjust the  
default command line args in enthought's f2py so the fink gfortran is  
happy.

I have also tries using g95 as the -fcompiler=g95 or -- 
fcompliler=gnu95  and this also produced different but I think  
fundamentally simmilar errors.

So my first question is how do I get enthought's f2py to stop using  
the fink or macports f2py???

below are the errors and my path:

f951: error: unrecognized command line option "-arch"
f951: error: unrecognized command line option "-arch"
error: Command "/sw/bin/gfortran -framework Accelerate -arch i686 - 
fPIC -O3 -funroll-loops -I/var/folders/kl/klVeAMWnFIu0yVKKFN-Zl++++TI/- 
Tmp-/tmpuXksrn/src.macosx-10.3-fat-2.5 -I/Library/Frameworks/ 
Python.framework/Versions/4.3.0/lib/python2.5/site-packages/ 
numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/4.3.0/include/python2.5 -c -c / 
tmp/foo.f90 -o /var/folders/kl/klVeAMWnFIu0yVKKFN-Zl++++TI/-Tmp-/ 
tmpuXksrn/tmp/foo.o" failed with exit status 1

echo $PATH

/Library/Frameworks/Python.framework/Versions/Current/bin:/opt/local/ 
bin:/usr/local/cuda/bin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/ 
sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/bin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.