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

Robert Kern <[email protected]>
Newsgroups gmane.comp.python.f2py.user
Organization The Church of Last Thursday
Message-ID <[email protected]>
On 2009-06-30 12:58, charlie strauss wrote:
> 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.

You almost certainly shouldn't be running f2py from ipython.

> 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.

Note that it's not "Enthought's f2py". It's the standard f2py from numpy. I 
suspect that Fink is patching numpy to work with its standard gfortran 
configuration out-of-box.

> 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???

Make sure that the gfortran that is first on your $PATH is the one you want to 
use. I recommend the one here:

   http://r.research.att.com/tools/

-- 
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
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.