MCPcopy Create free account
hub / github.com/numpy/numpy / get_default_fcompiler

Function get_default_fcompiler

numpy/distutils/fcompiler/__init__.py:855–868  ·  view source on GitHub ↗

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

(osname=None, platform=None, requiref90=False,
                          c_compiler=None)

Source from the content-addressed store, hash-verified

853 return matching_compiler_types
854
855def get_default_fcompiler(osname=None, platform=None, requiref90=False,
856 c_compiler=None):
857 """Determine the default Fortran compiler to use for the given
858 platform."""
859 matching_compiler_types = available_fcompilers_for_platform(osname,
860 platform)
861 log.info("get_default_fcompiler: matching types: '%s'",
862 matching_compiler_types)
863 compiler_type = _find_existing_fcompiler(matching_compiler_types,
864 osname=osname,
865 platform=platform,
866 requiref90=requiref90,
867 c_compiler=c_compiler)
868 return compiler_type
869
870# Flag to avoid rechecking for Fortran compiler every time
871failed_fcompilers = set()

Callers 1

new_fcompilerFunction · 0.85

Calls 3

_find_existing_fcompilerFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected