Message387211
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. |
|
Date |
User |
Action |
Args |
2021-02-18 11:13:38 | Omer.Katz | set | recipients:
+ Omer.Katz |
2021-02-18 11:13:38 | Omer.Katz | set | messageid: <1613646818.72.0.219281463951.issue43248@roundup.psfhosted.org> |
2021-02-18 11:13:38 | Omer.Katz | link | issue43248 messages |
2021-02-18 11:13:38 | Omer.Katz | create | |
|