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

mbarbera report at bugs.python.org
Thu Jun 18 13:38:27 EDT 2020

New submission from mbarbera <matteo.barbera97 at gmail.com>:

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 from parsing the version number from the shell output.

The issue was encountered when trying to install a third-party module to python3.6 on Ubuntu 18.04

components: Distutils
messages: 371830
nosy: dstufft, eric.araujo, mbarbera
priority: normal
severity: normal
status: open
title: get_version() fails to return gcc version for gcc-7
type: behavior
versions: Python 3.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list