MCPcopy Index your code
hub / github.com/python/cpython / get_versions

Function get_versions

Tools/c-analyzer/distutils/cygwinccompiler.py:274–280  ·  view source on GitHub ↗

Try to find out the versions of gcc, ld and dllwrap. If not possible it returns None for it.

()

Source from the content-addressed store, hash-verified

272 return LooseVersion(result.group(1).decode())
273
274def get_versions():
275 """ Try to find out the versions of gcc, ld and dllwrap.
276
277 If not possible it returns None for it.
278 """
279 commands = ['gcc -dumpversion', 'ld -v', 'dllwrap --version']
280 return tuple([_find_exe_version(cmd) for cmd in commands])
281
282def is_cygwingcc():
283 '''Try to determine if the gcc that would be used is from cygwin.'''

Callers 1

__init__Method · 0.85

Calls 1

_find_exe_versionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…