This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Omer.Katz
Recipients Omer.Katz
Date 2021-02-18.11:13:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613646818.72.0.219281463951.issue43248@roundup.psfhosted.org>
In-reply-to
Content
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.
If one of them is not detected, the returned value shouldn't be an empty string but None.
The current API is not what most people would expect it to be.
This is verified on Python 3.8 since that's the latest one available on Alpine.

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.
History
Date User Action Args
2021-02-18 11:13:38Omer.Katzsetrecipients: + Omer.Katz
2021-02-18 11:13:38Omer.Katzsetmessageid: <1613646818.72.0.219281463951.issue43248@roundup.psfhosted.org>
2021-02-18 11:13:38Omer.Katzlinkissue43248 messages
2021-02-18 11:13:38Omer.Katzcreate