class FCompiler(CCompiler):
Known subclasses: numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.compaq.CompaqFCompiler
, numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
, numpy.distutils.fcompiler.fujitsu.FujitsuFCompiler
, numpy.distutils.fcompiler.g95.G95FCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.ibm.IBMFCompiler
, numpy.distutils.fcompiler.intel.BaseIntelFCompiler
, numpy.distutils.fcompiler.lahey.LaheyFCompiler
, numpy.distutils.fcompiler.mips.MIPSFCompiler
, numpy.distutils.fcompiler.nag.BaseNAGFCompiler
, numpy.distutils.fcompiler.none.NoneFCompiler
, numpy.distutils.fcompiler.nv.NVHPCFCompiler
, numpy.distutils.fcompiler.pathf95.PathScaleFCompiler
, numpy.distutils.fcompiler.pg.PGroupFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
, numpy.distutils.fcompiler.sun.SunFCompiler
Abstract base class to define the interface that must be implemented by real Fortran compiler classes.
Methods that subclasses may redefine:
update_executables(), find_executables(), get_version() get_flags(), get_flags_opt(), get_flags_arch(), get_flags_debug() get_flags_f77(), get_flags_opt_f77(), get_flags_arch_f77(), get_flags_debug_f77(), get_flags_f90(), get_flags_opt_f90(), get_flags_arch_f90(), get_flags_debug_f90(), get_flags_fix(), get_flags_linker_so()
DON'T call these methods (except get_version) after constructing a compiler instance or inside any other method. All methods, except update_executables() and find_executables(), may call the get_version() method.
After constructing a compiler instance, always call customize(dist=None) method that finalizes compiler construction and makes the following attributes available:
compiler_f77 compiler_f90 compiler_fix linker_so archiver ranlib libraries library_dirs
Method | __copy__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | _command_property |
Undocumented |
Method | _compile |
Compile 'src' to product 'obj'. |
Method | _environment_hook |
Undocumented |
Method | _get_command_flags |
Undocumented |
Method | can_ccompiler_link |
Check if the given C compiler can link objects produced by this compiler. |
Method | copy |
Undocumented |
Method | customize |
Customize Fortran compiler. |
Method | dump_properties |
Print out the attributes of a compiler instance. |
Method | find_executables |
Go through the self.executables dictionary, and attempt to find and assign appropriate executables. |
Method | get_flags |
List of flags common to all compiler types. |
Method | get_flags_ar |
List of archiver flags. |
Method | get_flags_arch |
List of architecture dependent compiler flags. |
Method | get_flags_debug |
List of compiler flags to compile with debugging information. |
Method | get_flags_f77 |
List of Fortran 77 specific flags. |
Method | get_flags_f90 |
List of Fortran 90 specific flags. |
Method | get_flags_fix |
List of Fortran 90 fixed format specific flags. |
Method | get_flags_free |
List of Fortran 90 free format specific flags. |
Method | get_flags_linker_exe |
List of linker flags to build an executable. |
Method | get_flags_linker_so |
List of linker flags to build a shared library. |
Method | get_flags_opt |
List of architecture independent compiler flags. |
Method | get_libraries |
List of compiler libraries. |
Method | get_library_dirs |
List of compiler library directories. |
Method | get_version |
Undocumented |
Method | library_dir_option |
Undocumented |
Method | library_option |
Undocumented |
Method | link |
Undocumented |
Method | module_options |
Undocumented |
Method | set_command |
Undocumented |
Method | set_commands |
Undocumented |
Method | set_executable |
Undocumented |
Method | update_executables |
Called at the beginning of customisation. Subclasses should override this if they need to set up the executables dictionary. |
Method | wrap_unlinkable_objects |
Convert a set of object files that are not compatible with the default linker, to a file that is compatible. |
Class Variable | _exe_cache |
Undocumented |
Class Variable | _executable_keys |
Undocumented |
Class Variable | archiver |
Undocumented |
Class Variable | c_compiler |
Undocumented |
Class Variable | compile_switch |
Undocumented |
Class Variable | compiler_aliases |
Undocumented |
Class Variable | compiler_f77 |
Undocumented |
Class Variable | compiler_f90 |
Undocumented |
Class Variable | compiler_fix |
Undocumented |
Class Variable | compiler_type |
Undocumented |
Class Variable | exe_extension |
Undocumented |
Class Variable | extra_f77_compile_args |
Undocumented |
Class Variable | extra_f90_compile_args |
Undocumented |
Class Variable | language_map |
Undocumented |
Class Variable | language_order |
Undocumented |
Class Variable | library_switch |
Undocumented |
Class Variable | linker_exe |
Undocumented |
Class Variable | linker_so |
Undocumented |
Class Variable | module_dir_switch |
Undocumented |
Class Variable | module_include_switch |
Undocumented |
Class Variable | obj_extension |
Undocumented |
Class Variable | object_switch |
Undocumented |
Class Variable | pic_flags |
Undocumented |
Class Variable | possible_executables |
Undocumented |
Class Variable | ranlib |
Undocumented |
Class Variable | shared_lib_extension |
Undocumented |
Class Variable | shared_lib_format |
Undocumented |
Class Variable | src_extensions |
Undocumented |
Class Variable | static_lib_extension |
Undocumented |
Class Variable | static_lib_format |
Undocumented |
Class Variable | suggested_f90_compiler |
Undocumented |
Class Variable | version_cmd |
Undocumented |
Class Variable | version_pattern |
Undocumented |
Instance Variable | _is_customised |
Undocumented |
Instance Variable | command_vars |
Undocumented |
Instance Variable | distutils_vars |
Undocumented |
Instance Variable | executables |
Undocumented |
Instance Variable | flag_vars |
Undocumented |
numpy.distutils.fcompiler.gnu.Gnu95FCompiler
Customize Fortran compiler.
This method gets Fortran compiler specific information from (i) class definition, (ii) environment, (iii) distutils config files, and (iv) command line (later overrides earlier).
This method should be always called after constructing a compiler instance. But not in __init__ because Distribution instance is needed for (iii) and (iv).
numpy.distutils.fcompiler.none.NoneFCompiler
, numpy.distutils.fcompiler.vast.VastFCompiler
Go through the self.executables dictionary, and attempt to find and assign appropriate executables.
Executable names are looked for in the environment (environment variables, the distutils.cfg, and command line), the 0th-element of the command list, and the self.possible_executables list.
Also, if the 0th element is "<F77>" or "<F90>", the Fortran 77 or the Fortran 90 compiler executable is used, unless overridden by an environment setting.
Subclasses should call this if overridden.
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.compaq.CompaqFCompiler
, numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
, numpy.distutils.fcompiler.g95.G95FCompiler
, numpy.distutils.fcompiler.gnu.Gnu95FCompiler
, numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.ibm.IBMFCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
, numpy.distutils.fcompiler.intel.IntelVisualFCompiler
, numpy.distutils.fcompiler.mips.MIPSFCompiler
, numpy.distutils.fcompiler.nv.NVHPCFCompiler
, numpy.distutils.fcompiler.pg.PGroupFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.compaq.CompaqFCompiler
, numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
, numpy.distutils.fcompiler.intel.IntelVisualFCompiler
, numpy.distutils.fcompiler.mips.MIPSFCompiler
, numpy.distutils.fcompiler.nag.BaseNAGFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.compaq.CompaqFCompiler
, numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
, numpy.distutils.fcompiler.fujitsu.FujitsuFCompiler
, numpy.distutils.fcompiler.g95.G95FCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.ibm.IBMFCompiler
, numpy.distutils.fcompiler.intel.IntelVisualFCompiler
, numpy.distutils.fcompiler.lahey.LaheyFCompiler
, numpy.distutils.fcompiler.nag.NAGFCompiler
, numpy.distutils.fcompiler.nag.NAGFORCompiler
, numpy.distutils.fcompiler.nv.NVHPCFCompiler
, numpy.distutils.fcompiler.pathf95.PathScaleFCompiler
, numpy.distutils.fcompiler.pg.PGroupFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.sun.SunFCompiler
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
, numpy.distutils.fcompiler.intel.IntelVisualFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.compaq.CompaqFCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.ibm.IBMFCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
, numpy.distutils.fcompiler.nag.BaseNAGFCompiler
, numpy.distutils.fcompiler.nv.NVHPCFCompiler
, numpy.distutils.fcompiler.pg.PGroupFCompiler
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.compaq.CompaqFCompiler
, numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
, numpy.distutils.fcompiler.fujitsu.FujitsuFCompiler
, numpy.distutils.fcompiler.g95.G95FCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.ibm.IBMFCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
, numpy.distutils.fcompiler.intel.IntelVisualFCompiler
, numpy.distutils.fcompiler.lahey.LaheyFCompiler
, numpy.distutils.fcompiler.mips.MIPSFCompiler
, numpy.distutils.fcompiler.nag.BaseNAGFCompiler
, numpy.distutils.fcompiler.nv.NVHPCFCompiler
, numpy.distutils.fcompiler.pathf95.PathScaleFCompiler
, numpy.distutils.fcompiler.pg.PGroupFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.fujitsu.FujitsuFCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.lahey.LaheyFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
, numpy.distutils.fcompiler.sun.SunFCompiler
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.lahey.LaheyFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.ibm.IBMFCompiler
Undocumented
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
Undocumented
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
Undocumented
Undocumented
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.intel.BaseIntelFCompiler
Called at the beginning of customisation. Subclasses should override this if they need to set up the executables dictionary.
Note that self.find_executables() is run afterwards, so the self.executables dictionary values can contain <F77> or <F90> as the command, which will be replaced by the found F77 or F90 compiler.
numpy.distutils.fcompiler.gnu.Gnu95FCompiler
Convert a set of object files that are not compatible with the default linker, to a file that is compatible.
str
=
numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
, numpy.distutils.fcompiler.intel.IntelVisualFCompiler
Undocumented
tuple
=
numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
Undocumented
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.compaq.CompaqFCompiler
, numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
, numpy.distutils.fcompiler.fujitsu.FujitsuFCompiler
, numpy.distutils.fcompiler.g95.G95FCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.ibm.IBMFCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
, numpy.distutils.fcompiler.intel.IntelVisualFCompiler
, numpy.distutils.fcompiler.lahey.LaheyFCompiler
, numpy.distutils.fcompiler.mips.MIPSFCompiler
, numpy.distutils.fcompiler.nag.NAGFCompiler
, numpy.distutils.fcompiler.nag.NAGFORCompiler
, numpy.distutils.fcompiler.none.NoneFCompiler
, numpy.distutils.fcompiler.nv.NVHPCFCompiler
, numpy.distutils.fcompiler.pathf95.PathScaleFCompiler
, numpy.distutils.fcompiler.pg.PGroupFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
, numpy.distutils.fcompiler.sun.SunFCompiler
Undocumented
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.compaq.CompaqFCompiler
, numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
, numpy.distutils.fcompiler.fujitsu.FujitsuFCompiler
, numpy.distutils.fcompiler.g95.G95FCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
, numpy.distutils.fcompiler.intel.IntelVisualFCompiler
, numpy.distutils.fcompiler.lahey.LaheyFCompiler
, numpy.distutils.fcompiler.mips.MIPSFCompiler
, numpy.distutils.fcompiler.nv.NVHPCFCompiler
, numpy.distutils.fcompiler.pathf95.PathScaleFCompiler
, numpy.distutils.fcompiler.pg.PGroupFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
, numpy.distutils.fcompiler.sun.SunFCompiler
Undocumented
str
=
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.compaq.CompaqFCompiler
, numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
, numpy.distutils.fcompiler.fujitsu.FujitsuFCompiler
, numpy.distutils.fcompiler.g95.G95FCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
, numpy.distutils.fcompiler.intel.IntelVisualFCompiler
, numpy.distutils.fcompiler.lahey.LaheyFCompiler
, numpy.distutils.fcompiler.mips.MIPSFCompiler
, numpy.distutils.fcompiler.nv.NVHPCFCompiler
, numpy.distutils.fcompiler.pathf95.PathScaleFCompiler
, numpy.distutils.fcompiler.pg.PGroupFCompiler
, numpy.distutils.fcompiler.sun.SunFCompiler
Undocumented
list
=
numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.fujitsu.FujitsuFCompiler
, numpy.distutils.fcompiler.g95.G95FCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
, numpy.distutils.fcompiler.mips.MIPSFCompiler
, numpy.distutils.fcompiler.nv.NVHPCFCompiler
, numpy.distutils.fcompiler.pathf95.PathScaleFCompiler
, numpy.distutils.fcompiler.pg.PGroupFCompiler
, numpy.distutils.fcompiler.sun.SunFCompiler
Undocumented
list
=
numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.fujitsu.FujitsuFCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
, numpy.distutils.fcompiler.intel.IntelVisualFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
Undocumented
str
=
numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
Undocumented
str
=
numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
Undocumented
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.compaq.CompaqFCompiler
, numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
, numpy.distutils.fcompiler.fujitsu.FujitsuFCompiler
, numpy.distutils.fcompiler.g95.G95FCompiler
, numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.ibm.IBMFCompiler
, numpy.distutils.fcompiler.lahey.LaheyFCompiler
, numpy.distutils.fcompiler.mips.MIPSFCompiler
, numpy.distutils.fcompiler.nag.BaseNAGFCompiler
, numpy.distutils.fcompiler.nv.NVHPCFCompiler
, numpy.distutils.fcompiler.pathf95.PathScaleFCompiler
, numpy.distutils.fcompiler.pg.PGroupFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
, numpy.distutils.fcompiler.vast.VastFCompiler
Undocumented
numpy.distutils.fcompiler.absoft.AbsoftFCompiler
, numpy.distutils.fcompiler.arm.ArmFlangCompiler
, numpy.distutils.fcompiler.compaq.CompaqFCompiler
, numpy.distutils.fcompiler.compaq.CompaqVisualFCompiler
, numpy.distutils.fcompiler.fujitsu.FujitsuFCompiler
, numpy.distutils.fcompiler.g95.G95FCompiler
, numpy.distutils.fcompiler.gnu.GnuFCompiler
, numpy.distutils.fcompiler.hpux.HPUXFCompiler
, numpy.distutils.fcompiler.ibm.IBMFCompiler
, numpy.distutils.fcompiler.intel.IntelFCompiler
, numpy.distutils.fcompiler.intel.IntelVisualFCompiler
, numpy.distutils.fcompiler.lahey.LaheyFCompiler
, numpy.distutils.fcompiler.mips.MIPSFCompiler
, numpy.distutils.fcompiler.nag.NAGFCompiler
, numpy.distutils.fcompiler.nag.NAGFORCompiler
, numpy.distutils.fcompiler.none.NoneFCompiler
, numpy.distutils.fcompiler.nv.NVHPCFCompiler
, numpy.distutils.fcompiler.pathf95.PathScaleFCompiler
, numpy.distutils.fcompiler.pg.PGroupFCompiler
, numpy.distutils.fcompiler.pg.PGroupFlangCompiler
, numpy.distutils.fcompiler.sun.SunFCompiler
Undocumented