classification
Title: get_version() fails to return gcc version for gcc-7
Type: behavior Stage: resolved
Components: Distutils Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: dstufft, eric.araujo, mbarbera, steve.dower
Priority: normal Keywords: patch

Created on 2020-06-18 17:38 by mbarbera, last changed 2021-02-03 18:08 by steve.dower. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 20967 closed mbarbera, 2020-06-18 18:59
Messages (2)
msg371830 - (view) Author: (mbarbera) * Date: 2020-06-18 17:38
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
msg386271 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-03 18:08
Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.

If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools
History
Date User Action Args
2021-02-03 18:08:05steve.dowersetstatus: open -> closed

nosy: + steve.dower
messages: + msg386271

resolution: out of date
stage: patch review -> resolved
2020-06-18 18:59:48mbarberasetkeywords: + patch
stage: patch review
pull_requests: + pull_request20145
2020-06-18 17:38:51mbarberasetversions: - Python 3.6
2020-06-18 17:38:27mbarberacreate