Mercurial > hg > vamp-build-and-test
comparison 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 |
comparison
equal
deleted
inserted
replaced
86:413a9d26189e | 87:2a2c65a20a8b |
---|---|
1 from __future__ import division, absolute_import, print_function | |
2 | |
3 from numpy.distutils.fcompiler import FCompiler | |
4 | |
5 compilers = ['PathScaleFCompiler'] | |
6 | |
7 class PathScaleFCompiler(FCompiler): | |
8 | |
9 compiler_type = 'pathf95' | |
10 description = 'PathScale Fortran Compiler' | |
11 version_pattern = r'PathScale\(TM\) Compiler Suite: Version (?P<version>[\d.]+)' | |
12 | |
13 executables = { | |
14 'version_cmd' : ["pathf95", "-version"], | |
15 'compiler_f77' : ["pathf95", "-fixedform"], | |
16 'compiler_fix' : ["pathf95", "-fixedform"], | |
17 'compiler_f90' : ["pathf95"], | |
18 'linker_so' : ["pathf95", "-shared"], | |
19 'archiver' : ["ar", "-cr"], | |
20 'ranlib' : ["ranlib"] | |
21 } | |
22 pic_flags = ['-fPIC'] | |
23 module_dir_switch = '-module ' # Don't remove ending space! | |
24 module_include_switch = '-I' | |
25 | |
26 def get_flags_opt(self): | |
27 return ['-O3'] | |
28 def get_flags_debug(self): | |
29 return ['-g'] | |
30 | |
31 if __name__ == '__main__': | |
32 from distutils import log | |
33 log.set_verbosity(2) | |
34 #compiler = PathScaleFCompiler() | |
35 from numpy.distutils.fcompiler import new_fcompiler | |
36 compiler = new_fcompiler(compiler='pathf95') | |
37 compiler.customize() | |
38 print(compiler.get_version()) |