Check for availability of Fortran 77 compiler. Use it inside source generating function to ensure that setup distribution instance has been initialized. Notes ----- True if a Fortran 77 compiler is available (because a simple Fortran 77 code was able
(self)
| 1830 | return cmd.build_temp |
| 1831 | |
| 1832 | def have_f77c(self): |
| 1833 | """Check for availability of Fortran 77 compiler. |
| 1834 | |
| 1835 | Use it inside source generating function to ensure that |
| 1836 | setup distribution instance has been initialized. |
| 1837 | |
| 1838 | Notes |
| 1839 | ----- |
| 1840 | True if a Fortran 77 compiler is available (because a simple Fortran 77 |
| 1841 | code was able to be compiled successfully). |
| 1842 | """ |
| 1843 | simple_fortran_subroutine = ''' |
| 1844 | subroutine simple |
| 1845 | end |
| 1846 | ''' |
| 1847 | config_cmd = self.get_config_cmd() |
| 1848 | flag = config_cmd.try_compile(simple_fortran_subroutine, lang='f77') |
| 1849 | return flag |
| 1850 | |
| 1851 | def have_f90c(self): |
| 1852 | """Check for availability of Fortran 90 compiler. |
nothing calls this directly
no test coverage detected