◐ Shell
clean mode source ↗

gh-87414: add musl support to platform.libc_ver by cmaureir · Pull Request #103784 · python/cpython

This includes an implementation from the packaging
module to detect the musl version on the system,
allowing libc_ver to properly return the version
rather than an empty tuple.

Co-authored-by: Manuel Kaufmann <humitos@gmail.com>

@bedevere-bot mentioned this pull request

Apr 24, 2023

@cmaureir

ambv and others added 2 commits

April 25, 2023 02:09
We get the following error otherwise:

```
ImportError: attempted relative import with no known parent package
```
Put the musl tests behind `requires_musl` decorator so they are not run in
systems without its support.

malemburg

@humitos

malemburg

mara004

- Making requires_musl compatible with macOS
- Add permalinks on the packaging references
- Add comment for the b'musl' check before b'libc'

encukou