New submission from Omer Katz <omer.d...@gmail.com>:
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. ---------- messages: 387211 nosy: Omer.Katz priority: normal severity: normal status: open title: platform.libc_ver() returns no information on Alpine Linux versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43248> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com