1from numpy.distutils.fcompiler import FCompiler 2from numpy.distutils import customized_fcompiler 3 4compilers = ['NoneFCompiler'] 5 6class NoneFCompiler(FCompiler): 7 8 compiler_type = 'none' 9 description = 'Fake Fortran compiler' 10 11 executables = {'compiler_f77': None, 12 'compiler_f90': None, 13 'compiler_fix': None, 14 'linker_so': None, 15 'linker_exe': None, 16 'archiver': None, 17 'ranlib': None, 18 'version_cmd': None, 19 } 20 21 def find_executables(self): 22 pass 23 24 25if __name__ == '__main__': 26 from distutils import log 27 log.set_verbosity(2) 28 print(customized_fcompiler(compiler='none').get_version()) 29