1313
1414def intel_version_match (type ):
1515 # Match against the important stuff in the version string
16- return simple_version_match (start = r'Intel.*?Fortran.*?(?:%s).*?Version' % (type ,))
16+ return simple_version_match (
17+ start = r'Intel.*?Fortran.*?(?:%s).*?Version' .format (type ,))
1718
1819
1920class BaseIntelFCompiler (FCompiler ):
@@ -36,13 +37,13 @@ class IntelFCompiler(BaseIntelFCompiler):
3637 possible_executables = ['ifort' , 'ifc' ]
3738
3839 executables = {
39- 'version_cmd' : None , # set by update_executables
40- 'compiler_f77' : [None , "-72" , "-w90" , "-w95" ],
41- 'compiler_f90' : [None ],
42- 'compiler_fix' : [None , "-FI" ],
43- 'linker_so' : ["<F90>" , "-shared" ],
44- 'archiver' : ["ar" , "-cr" ],
45- 'ranlib' : ["ranlib" ]
40+ 'version_cmd' : None , # set by update_executables
41+ 'compiler_f77' : [None , "-72" , "-w90" , "-w95" ],
42+ 'compiler_f90' : [None ],
43+ 'compiler_fix' : [None , "-FI" ],
44+ 'linker_so' : ["<F90>" , "-shared" ],
45+ 'archiver' : ["ar" , "-cr" ],
46+ 'ranlib' : ["ranlib" ]
4647 }
4748
4849 pic_flags = ['-fPIC' ]
@@ -89,13 +90,13 @@ class IntelItaniumFCompiler(IntelFCompiler):
8990 possible_executables = ['ifort' , 'efort' , 'efc' ]
9091
9192 executables = {
92- 'version_cmd' : None ,
93- 'compiler_f77' : [None , "-FI" , "-w90" , "-w95" ],
94- 'compiler_fix' : [None , "-FI" ],
95- 'compiler_f90' : [None ],
96- 'linker_so' : ['<F90>' , "-shared" ],
97- 'archiver' : ["ar" , "-cr" ],
98- 'ranlib' : ["ranlib" ]
93+ 'version_cmd' : None ,
94+ 'compiler_f77' : [None , "-FI" , "-w90" , "-w95" ],
95+ 'compiler_fix' : [None , "-FI" ],
96+ 'compiler_f90' : [None ],
97+ 'linker_so' : ['<F90>' , "-shared" ],
98+ 'archiver' : ["ar" , "-cr" ],
99+ 'ranlib' : ["ranlib" ]
99100 }
100101
101102
@@ -104,18 +105,19 @@ class IntelEM64TFCompiler(IntelFCompiler):
104105 compiler_aliases = ()
105106 description = 'Intel Fortran Compiler for 64-bit apps'
106107
107- version_match = intel_version_match ('EM64T-based|Intel\\ (R\\ ) 64|64|IA-64|64-bit' )
108+ version_match = intel_version_match (
109+ 'EM64T-based|Intel\\ (R\\ ) 64|64|IA-64|64-bit' )
108110
109111 possible_executables = ['ifort' , 'efort' , 'efc' ]
110112
111113 executables = {
112- 'version_cmd' : None ,
113- 'compiler_f77' : [None , "-FI" ],
114- 'compiler_fix' : [None , "-FI" ],
115- 'compiler_f90' : [None ],
116- 'linker_so' : ['<F90>' , "-shared" ],
117- 'archiver' : ["ar" , "-cr" ],
118- 'ranlib' : ["ranlib" ]
114+ 'version_cmd' : None ,
115+ 'compiler_f77' : [None , "-FI" ],
116+ 'compiler_fix' : [None , "-FI" ],
117+ 'compiler_f90' : [None ],
118+ 'linker_so' : ['<F90>' , "-shared" ],
119+ 'archiver' : ["ar" , "-cr" ],
120+ 'ranlib' : ["ranlib" ]
119121 }
120122
121123 def get_flags (self ):
@@ -147,13 +149,13 @@ def update_executables(self):
147149 possible_executables = ['ifort' , 'ifl' ]
148150
149151 executables = {
150- 'version_cmd' : None ,
151- 'compiler_f77' : [None ],
152- 'compiler_fix' : [None ],
153- 'compiler_f90' : [None ],
154- 'linker_so' : [None ],
155- 'archiver' : [ar_exe , "/verbose" , "/OUT:" ],
156- 'ranlib' : None
152+ 'version_cmd' : None ,
153+ 'compiler_f77' : [None ],
154+ 'compiler_fix' : [None ],
155+ 'compiler_f90' : [None ],
156+ 'linker_so' : [None ],
157+ 'archiver' : [ar_exe , "/verbose" , "/OUT:" ],
158+ 'ranlib' : None
157159 }
158160
159161 compile_switch = '/c '
@@ -163,7 +165,8 @@ def update_executables(self):
163165 module_include_switch = '/I'
164166
165167 def get_flags (self ):
166- opt = ['/nologo' , '/MD' , '/nbs' , '/names:lowercase' , '/assume:underscore' ]
168+ opt = ['/nologo' , '/MD' , '/nbs' , '/names:lowercase' ,
169+ '/assume:underscore' ]
167170 return opt
168171
169172 def get_flags_free (self ):
@@ -192,13 +195,13 @@ class IntelItaniumVisualFCompiler(IntelVisualFCompiler):
192195 ar_exe = IntelVisualFCompiler .ar_exe
193196
194197 executables = {
195- 'version_cmd' : None ,
196- 'compiler_f77' : [None , "-FI" , "-w90" , "-w95" ],
197- 'compiler_fix' : [None , "-FI" , "-4L72" , "-w" ],
198- 'compiler_f90' : [None ],
199- 'linker_so' : ['<F90>' , "-shared" ],
200- 'archiver' : [ar_exe , "/verbose" , "/OUT:" ],
201- 'ranlib' : None
198+ 'version_cmd' : None ,
199+ 'compiler_f77' : [None , "-FI" , "-w90" , "-w95" ],
200+ 'compiler_fix' : [None , "-FI" , "-4L72" , "-w" ],
201+ 'compiler_f90' : [None ],
202+ 'linker_so' : ['<F90>' , "-shared" ],
203+ 'archiver' : [ar_exe , "/verbose" , "/OUT:" ],
204+ 'ranlib' : None
202205 }
203206
204207
0 commit comments