MCPcopy Create free account
hub / github.com/numpy/numpy / version_match

Method version_match

numpy/distutils/fcompiler/gnu.py:271–288  ·  view source on GitHub ↗
(self, version_string)

Source from the content-addressed store, hash-verified

269 description = 'GNU Fortran 95 compiler'
270
271 def version_match(self, version_string):
272 v = self.gnu_version_match(version_string)
273 if not v or v[0] != 'gfortran':
274 return None
275 v = v[1]
276 if LooseVersion(v) >= "4":
277 # gcc-4 series releases do not support -mno-cygwin option
278 pass
279 else:
280 # use -mno-cygwin flag for gfortran when Python is not
281 # Cygwin-Python
282 if sys.platform == 'win32':
283 for key in [
284 'version_cmd', 'compiler_f77', 'compiler_f90',
285 'compiler_fix', 'linker_so', 'linker_exe'
286 ]:
287 self.executables[key].append('-mno-cygwin')
288 return v
289
290 possible_executables = ['gfortran', 'f95']
291 executables = {

Callers

nothing calls this directly

Calls 1

gnu_version_matchMethod · 0.80

Tested by

no test coverage detected