Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/mingw32/Python27/Lib/site-packages/numpy/distutils/fcompiler/pathf95.py @ 87:2a2c65a20a8b
Add Python libs and headers
author | Chris Cannam |
---|---|
date | Wed, 25 Feb 2015 14:05:22 +0000 |
parents | |
children |
rev | line source |
---|---|
Chris@87 | 1 from __future__ import division, absolute_import, print_function |
Chris@87 | 2 |
Chris@87 | 3 from numpy.distutils.fcompiler import FCompiler |
Chris@87 | 4 |
Chris@87 | 5 compilers = ['PathScaleFCompiler'] |
Chris@87 | 6 |
Chris@87 | 7 class PathScaleFCompiler(FCompiler): |
Chris@87 | 8 |
Chris@87 | 9 compiler_type = 'pathf95' |
Chris@87 | 10 description = 'PathScale Fortran Compiler' |
Chris@87 | 11 version_pattern = r'PathScale\(TM\) Compiler Suite: Version (?P<version>[\d.]+)' |
Chris@87 | 12 |
Chris@87 | 13 executables = { |
Chris@87 | 14 'version_cmd' : ["pathf95", "-version"], |
Chris@87 | 15 'compiler_f77' : ["pathf95", "-fixedform"], |
Chris@87 | 16 'compiler_fix' : ["pathf95", "-fixedform"], |
Chris@87 | 17 'compiler_f90' : ["pathf95"], |
Chris@87 | 18 'linker_so' : ["pathf95", "-shared"], |
Chris@87 | 19 'archiver' : ["ar", "-cr"], |
Chris@87 | 20 'ranlib' : ["ranlib"] |
Chris@87 | 21 } |
Chris@87 | 22 pic_flags = ['-fPIC'] |
Chris@87 | 23 module_dir_switch = '-module ' # Don't remove ending space! |
Chris@87 | 24 module_include_switch = '-I' |
Chris@87 | 25 |
Chris@87 | 26 def get_flags_opt(self): |
Chris@87 | 27 return ['-O3'] |
Chris@87 | 28 def get_flags_debug(self): |
Chris@87 | 29 return ['-g'] |
Chris@87 | 30 |
Chris@87 | 31 if __name__ == '__main__': |
Chris@87 | 32 from distutils import log |
Chris@87 | 33 log.set_verbosity(2) |
Chris@87 | 34 #compiler = PathScaleFCompiler() |
Chris@87 | 35 from numpy.distutils.fcompiler import new_fcompiler |
Chris@87 | 36 compiler = new_fcompiler(compiler='pathf95') |
Chris@87 | 37 compiler.customize() |
Chris@87 | 38 print(compiler.get_version()) |