[SciPy-user] Having trouble with scipy_distutils - specifying a fortran compiler
Cory Davis
cdavis at staffmail.ed.ac.uk
Wed Aug 11 18:08:10 EDT 2004
Hi All,
I have developed a Python package for atmospheric radiative transfer
simulations in remote sensing applications
(hhtp://www.met.ed.ac.uk/~cory/PyARTS). F2PY and scipy_distutils have
been extremely helpful for creating and distributing this package.
Until now I have installed the package using the command
python setup.py install --home=~
,which has been fine. But now because I have included some quad
precision fortran code I need to use a different fortran compiler
(instead of g77), for example the Lahey, or NAG compilers.
According to the scipy_distutils section of the f2py user guide, to
specify the compiler I now need to use the command 'build_ext' with the
--fcompiler argument. The trouble is whenever I try to use this command
on its own it complains about the f2py signature file included in the
extension module sources. E.g.
[cory at bruce PyARTS]$ python setup.py build_ext
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize GnuFCompiler
customize GnuFCompiler
customize GnuFCompiler using build_ext
building 'scatsubs' extension
compling C sources
gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe
-march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -fPIC'
error: unknown file type '.pyf' (from './src/scatsubs.pyf')
I'm obviously doing something daft, but I have scoured the net for
documentation to no avail.
Can anyone offer me some advice?
Thanks,
Cory
More information about the SciPy-User
mailing list