numpy.distutils.fcompiler
Contains FCompiler, an abstract base class that defines the interface for the numpy.distutils Fortran compiler abstraction model.
fcompiler_class = { Const('gnu') : Tuple([Const('gnu'), Const('GnuFCompiler'), Const('GNU Fortran Compiler')]), Const('gnu95') : Tuple([Const('gnu'), Const('Gnu95FCompiler'), Const('GNU 95 Fortran Compiler')]), Const('g95') : Tuple([Const('g95'), Const('G95FCompiler'), Const('GNU Fortran 95 Compiler')]), Const('pg') : Tuple([Const('pg'), Const('PGroupFCompiler'), Const('Portland Group Fortran Compiler')]), Const('absoft') : Tuple([Const('absoft'), Const('AbsoftFCompiler'), Const('Absoft Corp Fortran Compiler')]), Const('mips') : Tuple([Const('mips'), Const('MipsFCompiler'), Const('MIPSpro Fortran Compiler')]), Const('sun') : Tuple([Const('sun'), Const('SunFCompiler'), Const('Sun|Forte Fortran 95 Compiler')]), Const('intel') : Tuple([Const('intel'), Const('IntelFCompiler'), Const('Intel Fortran Compiler for 32-bit apps')]), Const('intelv') : Tuple([Const('intel'), Const('IntelVisualFCompiler'), Const('Intel Visual Fortran Compiler for 32-bit apps')]), Const('intele') : Tuple([Const('intel'), Const('IntelItaniumFCompiler'), Const('Intel Fortran Compiler for Itanium apps')]), Const('intelev') : Tuple([Const('intel'), Const('IntelItaniumVisualFCompiler'), Const('Intel Visual Fortran Compiler for Itanium apps')]), Const('nag') : Tuple([Const('nag'), Const('NAGFCompiler'), Const('NAGWare Fortran 95 Compiler')]), Const('compaq') : Tuple([Const('compaq'), Const('CompaqFCompiler'), Const('Compaq Fortran Compiler')]), Const('compaqv') : Tuple([Const('compaq'), Const('CompaqVisualFCompiler'), Const('DIGITAL|Compaq Visual Fortran Compiler')]), Const('vast') : Tuple([Const('vast'), Const('VastFCompiler'), Const('Pacific-Sierra Research Fortran 90 Compiler')]), Const('hpux') : Tuple([Const('hpux'), Const('HPUXFCompiler'), Const('HP Fortran 90 Compiler')]), Const('lahey') : Tuple([Const('lahey'), Const('LaheyFCompiler'), Const('Lahey/Fujitsu Fortran 95 Compiler')]), Const('ibm') : Tuple([Const('ibm'), Const('IbmFCompiler'), Const('IBM XL Fortran Compiler')]), Const('f') : Tuple([Const('f'), Const('FFCompiler'), Const('Fortran Company/NAG F Compiler')]), Const('none') : Tuple([Const('none'), Const('NoneFCompiler'), Const('Fake Fortran compiler')]) }
is_f_file = re.compile('.*[.](for|ftn|f77|f)\\Z', re.I).match
Determine the default Fortran compiler to use for the given platform.
Check if file is in free format Fortran.
Generate an instance of some FCompiler subclass for the supplied platform/compiler combination.
Print list of available compilers (used by the "--help-fcompiler" option to "config_fc").
| Local name | Refers to |
|---|---|
| CompileError | distutils.errors.CompileError |
| config_fc | numpy.distutils.command.config_compiler.config_fc |
| DistutilsArgError | distutils.errors.DistutilsArgError |
| DistutilsExecError | distutils.errors.DistutilsExecError |
| DistutilsModuleError | distutils.errors.DistutilsModuleError |
| DistutilsPlatformError | distutils.errors.DistutilsPlatformError |
| FancyGetopt | distutils.fancy_getopt.FancyGetopt |
| gen_lib_options | numpy.distutils.ccompiler.gen_lib_options |
| get_config_var | distutils.sysconfig.get_config_var |
| is_sequence | numpy.distutils.misc_util.is_sequence |
| is_string | numpy.distutils.misc_util.is_string |
| LinkError | distutils.errors.LinkError |
| NoneType | types.NoneType |
| os | os |
| re | re |
| split_quoted | distutils.util.split_quoted |
| StringType | types.StringType |
| sys | sys |
| _nt_quote_args | distutils.spawn._nt_quote_args |