none.py 824 B

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