gh-90548: Fix musl version detection with --strip-all by cdce8p · Pull Request #137864 · python/cpython · GitHub

github.com

Tin mới

cdce8p:musl-libc_ver

miss-islington-app

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

https://github.com/docker-library/python/blob/19c93d12094b07ecc21f67144a309c2fa0a10ef0/3.14-rc/alpine3.22/Dockerfile#L74

The change introduced in #131313 accidentally broke the musl version detection for test.support.linked_with_musl if cpython is compiled with --strip-all. In these cases the regex in platform.libc_ver should match the fil

Multiple test failures on Alpine 3.15 / musl-1.2.2-r7 #90548

: Fix musl version detection with --strip-all

needs backport to 3.14

needs backport to 3.14

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Update Lib/platform.py

View reviewed changes

Update Lib/platform.py

Unsupported platforms

Fair enough, though "linux" is sufficiently vague that I think it is probably fine. Ideally we'd have a "libc-musl" label, but given as you say Alpine is unsupported, it's too niche at present.

View reviewed changes

: Fix musl version detection with --strip-all (

bedevere-app Bot commented Sep 1, 2025

bedevere-app Bot commented Sep 1, 2025

GH-138348 is a backport of this pull request to the 3.14 branch.

: Fix musl version detection with --strip-all (

: Fix musl version detection with --strip-all (

: Fix musl version detection with --strip-all (

Add Python 3.14 + drop Python 3.11 + update 3.13 home-assistant/docker-base#306