[f2py] compiling with ifort

f2py-xTmwmebocMmUmYeGgvxl9AC/[email protected]
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
Hi,
Whenever I type "f2py --fcompiler=intel -c -m hello hello.f" the
following output appears:

"running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands
--compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands
--fcompiler options
running build_src
building extension "hello" sources
f2py options: []
f2py:>
/var/folders/BD/BDhIPvqXFbGsfTHiDO-8xk+++TI/-Tmp-/tmp1NnNO1/src.macosx-10.3-i386-2.5/hellomodule.c
creating /var/folders/BD/BDhIPvqXFbGsfTHiDO-8xk+++TI/-Tmp-/tmp1NnNO1
creating
/var/folders/BD/BDhIPvqXFbGsfTHiDO-8xk+++TI/-Tmp-/tmp1NnNO1/src.macosx-10.3-i386-2.5
Reading fortran codes...
	Reading file 'hello.f' (format:fix,strict)
Post-processing...
	Block: hello
			Block: foo
Post-processing (stage 2)...
Building modules...
	Building module "hello"...
		Constructing wrapper function "foo"...
		  foo(a)
	Wrote C/API module "hello" to file
	"/var/folders/BD/BDhIPvqXFbGsfTHiDO-8xk+++TI/-Tmp-/tmp1NnNO1/src.macosx-10.3-i386-2.5/hellomodule.c"
  adding
  '/var/folders/BD/BDhIPvqXFbGsfTHiDO-8xk+++TI/-Tmp-/tmp1NnNO1/src.macosx-10.3-i386-2.5/fortranobject.c'
  to sources.
  adding
  '/var/folders/BD/BDhIPvqXFbGsfTHiDO-8xk+++TI/-Tmp-/tmp1NnNO1/src.macosx-10.3-i386-2.5'
  to include_dirs.
copying
/Library/Frameworks/Python.framework/Versions/5.1.1/lib/python2.5/site-packages/numpy/f2py/src/fortranobject.c
->
/var/folders/BD/BDhIPvqXFbGsfTHiDO-8xk+++TI/-Tmp-/tmp1NnNO1/src.macosx-10.3-i386-2.5
copying
/Library/Frameworks/Python.framework/Versions/5.1.1/lib/python2.5/site-packages/numpy/f2py/src/fortranobject.h
->
/var/folders/BD/BDhIPvqXFbGsfTHiDO-8xk+++TI/-Tmp-/tmp1NnNO1/src.macosx-10.3-i386-2.5
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize IntelFCompiler
Found executable /usr/bin/ifort
warning: build_ext: f77_compiler=intel is not available.
building 'hello' extension
error: extension 'hello' has Fortran sources but no Fortran compiler
found
"

Why does it complain it hasn't found a Fortran compiler if it did just 3
lines before?
I am using Entought Python dist on Snow Leopard 10.6.2.
Thank you,
-- 
  Hugo Gagnon
-- 
  Hugo Gagnon
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.