[SciPy-dev] Re: Another issue with scipy_distutils and FORTRAN files

Pearu Peterson pearu at scipy.org
Wed Mar 31 14:38:04 CST 2004



On Wed, 31 Mar 2004, [ISO-8859-15] Berthold Höllmann wrote:

> There is usually some "internal" preprocessing support in FORTRAN
> code: using the 'include "some.inp"' command. Some FORTRAN compiler
> such as Compaq or SunFortran are looking into the direcory where the
> source file comes from for those include file, but unfortunately the
> Intel Compiler (at least under Linux) does not. So even without real
> preprocessing support at least the 'include_dirs' part of 'pp_opts' is
> needed for the FORTRAN compiler. For the four FORTRAN compiler I have
> access to, using the preprocessor is just another compiler option:
> 
>    g77: -x f77-cpp-input
>    ifc: -fpp
>    Sun: -fpp
>    compaq: /fpp
> 
> So maybe implemention is easy?
> 
> '_compile' gets only pp_opts as an argument so I used it in building
> the command line, but of course one could split 'pp_opts' again in
> 'macros', and 'include_dirs' and give those to _compile.

I'll put fixing this into my TODO list.

Pearu





More information about the Scipy-dev mailing list