package documentation

numpy.distutils.fcompiler

Contains FCompiler, an abstract base class that defines the interface for the numpy.distutils Fortran compiler abstraction model.

Terminology:

To be consistent, where the term 'executable' is used, it means the single file, like 'gcc', that is executed, and should be a string. In contrast, 'command' means the entire command line, like ['gcc', '-c', 'file.c'], and should be a list.

But note that FCompiler.executables is actually a dictionary of commands.

Module absoft Undocumented
Module arm Undocumented
Module compaq Undocumented
Module environment Undocumented
Module fujitsu fujitsu
Module g95 Undocumented
Module gnu No module docstring; 0/1 variable, 0/1 constant, 1/2 function, 0/2 class documented
Module hpux Undocumented
Module ibm Undocumented
Module intel Undocumented
Module lahey Undocumented
Module mips Undocumented
Module nag Undocumented
Module none Undocumented
Module nv No module docstring; 0/1 variable, 1/1 class documented
Module pathf95 Undocumented
Module pg Undocumented
Module sun Undocumented
Module vast Undocumented

From __init__.py:

Class FCompiler Abstract base class to define the interface that must be implemented by real Fortran compiler classes.
Exception CompilerNotFound Undocumented
Function available_fcompilers_for_platform Undocumented
Function dummy_fortran_file Undocumented
Function flaglist Undocumented
Function get_default_fcompiler Determine the default Fortran compiler to use for the given platform.
Function get_f77flags CF77FLAGS(<fcompiler type>)=
Function has_f90_header Undocumented
Function is_free_format Check if file is in free format Fortran.
Function is_sequence_of_strings Undocumented
Function load_all_fcompiler_classes Cache all the FCompiler classes found in modules in the numpy.distutils.fcompiler package.
Function new_fcompiler Generate an instance of some FCompiler subclass for the supplied platform/compiler combination.
Function show_fcompilers Print list of available compilers (used by the "--help-fcompiler" option to "config_fc").
Function str2bool Undocumented
Variable failed_fcompilers Undocumented
Variable fcompiler_aliases Undocumented
Variable fcompiler_class Undocumented
Variable is_f_file Undocumented
Function _find_existing_fcompiler Undocumented
Variable _default_compilers Undocumented
Variable _f77flags_re Undocumented
Variable _free_f90_start Undocumented
Variable _has_f90_header Undocumented
Variable _has_f_header Undocumented
Variable _has_fix_header Undocumented
def flaglist(s): (source)

Undocumented

def str2bool(s): (source)

Undocumented

def is_sequence_of_strings(seq): (source)

Undocumented

_default_compilers: tuple[tuple, ...] = (source)

Undocumented

fcompiler_class = (source)

Undocumented

fcompiler_aliases = (source)

Undocumented

def load_all_fcompiler_classes(): (source)

Cache all the FCompiler classes found in modules in the numpy.distutils.fcompiler package.

def _find_existing_fcompiler(compiler_types, osname=None, platform=None, requiref90=False, c_compiler=None): (source)

Undocumented

def available_fcompilers_for_platform(osname=None, platform=None): (source)

Undocumented

def get_default_fcompiler(osname=None, platform=None, requiref90=False, c_compiler=None): (source)

Determine the default Fortran compiler to use for the given platform.

failed_fcompilers = (source)

Undocumented

def new_fcompiler(plat=None, compiler=None, verbose=0, dry_run=0, force=0, requiref90=False, c_compiler=None): (source)

Generate an instance of some FCompiler subclass for the supplied platform/compiler combination.

def show_fcompilers(dist=None): (source)

Print list of available compilers (used by the "--help-fcompiler" option to "config_fc").

def dummy_fortran_file(): (source)

Undocumented

is_f_file = (source)

Undocumented

_has_f_header = (source)

Undocumented

_has_f90_header = (source)

Undocumented

_has_fix_header = (source)

Undocumented

_free_f90_start = (source)

Undocumented

def is_free_format(file): (source)

Check if file is in free format Fortran.

def has_f90_header(src): (source)

Undocumented

_f77flags_re = (source)

Undocumented

def get_f77flags(src): (source)

Search the first 20 lines of fortran 77 code for line pattern
CF77FLAGS(<fcompiler type>)=

Return a dictionary {<fcompiler type>:<f77 flags>}.