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

Method have_f90c

numpy/distutils/misc_util.py:1851–1868  ·  view source on GitHub ↗

Check for availability of Fortran 90 compiler. Use it inside source generating function to ensure that setup distribution instance has been initialized. Notes ----- True if a Fortran 90 compiler is available (because a simple Fortran 90 code was able

(self)

Source from the content-addressed store, hash-verified

1849 return flag
1850
1851 def have_f90c(self):
1852 """Check for availability of Fortran 90 compiler.
1853
1854 Use it inside source generating function to ensure that
1855 setup distribution instance has been initialized.
1856
1857 Notes
1858 -----
1859 True if a Fortran 90 compiler is available (because a simple Fortran
1860 90 code was able to be compiled successfully)
1861 """
1862 simple_fortran_subroutine = '''
1863 subroutine simple
1864 end
1865 '''
1866 config_cmd = self.get_config_cmd()
1867 flag = config_cmd.try_compile(simple_fortran_subroutine, lang='f90')
1868 return flag
1869
1870 def append_to(self, extlib):
1871 """Append libraries, include_dirs to extension or library item.

Callers

nothing calls this directly

Calls 1

get_config_cmdMethod · 0.95

Tested by

no test coverage detected