none.py 758 B

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