-
-
Notifications
You must be signed in to change notification settings - Fork 32k
platform.libc_ver() returns no information on Alpine Linux #87414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
When calling platform.libc_ver() on Alpine I get the following tuple: ('', '') Instead, I expect to get ('muslc', '<version number>') or an exception if the libc type & version cannot be detected. This code reliably detects musl libc and its version: https://github.com/lovell/detect-libc/blob/master/lib/detect-libc.js I'd be happy to contribute a PR if needed. |
@Omer.Katz This issue should be fixed, feel free to submit the PR |
Any progress on this? Is there any other function to check whether the host system is using musl or glibc? |
Looks like platform.libc_ver()[0] currently just returns an empty string on musl: python/cpython#87414
How about just integrating packaging's musl detection code into the standard library? (Actually, I'm a bit surprised this wasn't done directly on the implementation of PEP 656.) |
It is tempting to use it incorrectly, and implementation is horrible and based on unresolved bug in CPython (or musl libc itself). References: python/cpython#87414
It is tempting to use it incorrectly, and implementation is horrible and based on unresolved bug in CPython (or musl libc itself). References: python/cpython#87414
Uh oh!
There was an error while loading. Please reload this page.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
Linked PRs
The text was updated successfully, but these errors were encountered: