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:

Variable failed​_fcompilers Undocumented
Variable fcompiler​_aliases Undocumented
Variable fcompiler​_class Undocumented
Variable is​_f​_file Undocumented
Class ​Compiler​Not​Found Undocumented
Class ​FCompiler Abstract base class to define the interface that must be implemented by real Fortran compiler classes.
Function ​_find​_existing​_fcompiler 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 Search the first 20 lines of fortran 77 code for line pattern CF77FLAGS(<fcompiler type>)= Return a dictionary {<fcompiler type>:<f77 flags>}.
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 ​_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):

Undocumented

def str2bool(s):

Undocumented

def is_sequence_of_strings(seq):

Undocumented

_default_compilers: tuple[tuple, ...] =

Undocumented

fcompiler_class =

Undocumented

fcompiler_aliases =

Undocumented

def load_all_fcompiler_classes():
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):

Undocumented

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

Undocumented

def get_default_fcompiler(osname=None, platform=None, requiref90=False, c_compiler=None):
Determine the default Fortran compiler to use for the given platform.
failed_fcompilers: set =

Undocumented

def new_fcompiler(plat=None, compiler=None, verbose=0, dry_run=0, force=0, requiref90=False, c_compiler=None):
Generate an instance of some FCompiler subclass for the supplied platform/compiler combination.
def show_fcompilers(dist=None):
Print list of available compilers (used by the "--help-fcompiler" option to "config_fc").
def dummy_fortran_file():

Undocumented

is_f_file =

Undocumented

_has_f_header =

Undocumented

_has_f90_header =

Undocumented

_has_fix_header =

Undocumented

_free_f90_start =

Undocumented

def is_free_format(file):
Check if file is in free format Fortran.
def has_f90_header(src):

Undocumented

_f77flags_re =

Undocumented

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

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