[issue41027] get_version() fails to return gcc version for gcc-7

2020-06-18 Thread mbarbera
Change by mbarbera : -- keywords: +patch pull_requests: +20145 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20967 ___ Python tracker <https://bugs.python.org/issu

[issue41027] get_version() fails to return gcc version for gcc-7

2020-06-18 Thread mbarbera
Change by mbarbera : -- versions: -Python 3.6 ___ Python tracker <https://bugs.python.org/issue41027> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41027] get_version() fails to return gcc version for gcc-7

2020-06-18 Thread mbarbera
New submission from mbarbera : In Lib/distutils/cygwincompiler.py, get_version() tries to parse the output of shell commands to check for the gcc version. gcc-7 has changed the behavior of the flag -dumpversion to only show the major version number. This prevents the regex string RE_VERSION