[SciPy-user] Building fortran libraries using scipy_distutils

Pearu Peterson pearu at cens.ioc.ee
Sat Mar 20 14:06:13 EST 2004


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

> Hello,
> 
> How (if at all) can I add command line switches for the fortran
> compiler when building libraries from scipy_distutils using
> 'libraries'?

You can enhance the fortran compiler switches using config_fc command. For
example,

  python setup.py config_fc --help

will display

  Options for 'config_fc' command:
  --fcompiler       specify Fortran compiler type
  --f77exec         specify F77 compiler command
  --f90exec         specify F90 compiler command
  --f77flags        specify F77 compiler flags
  --f90flags        specify F90 compiler flags
  --opt             specify optimization flags
  --arch            specify architecture specific optimization flags
  --debug (-g)      compile with debugging information
  --noopt           compile without optimization
  --noarch          compile without arch-dependent optimization
  --help-fcompiler  list available Fortran compilers



HTH,
Pearu




More information about the SciPy-User mailing list