Message381741
> os-release is covered by the distro module.
Ah, I didn't know.
https://pypi.org/project/distro/
"""
The distro package implements a robust and inclusive way of retrieving the information about a distribution based on new standards and old methods, namely from these data sources (from high to low precedence):
The os-release file /etc/os-release, if present.
The output of the lsb_release command, if available.
The distro release file (/etc/*(-|_)(release|version)), if present.
The uname command for BSD based distrubtions.
"""
You're right, not only os-release is used, but it has the highest priority.
> There's no need to expose a second implementation as another API in the standard library.
Usually, a new experimental feature is developed on PyPI. Once it becomes stable and mature enough, we consider to include it into the stdlib.
Since the file format became standard and the file became available on almost all Linux distributions, it seems like we reached this point, no?
Christian: can you please try to contact the distro maintainer, Nir Cohen, to ask him to help us on this issue? |
|
Date |
User |
Action |
Args |
2020-11-24 13:44:45 | vstinner | set | recipients:
+ vstinner, doko, christian.heimes, r.david.murray, matrixise, cstratak |
2020-11-24 13:44:45 | vstinner | set | messageid: <1606225485.07.0.134875911139.issue28468@roundup.psfhosted.org> |
2020-11-24 13:44:45 | vstinner | link | issue28468 messages |
2020-11-24 13:44:44 | vstinner | create | |
|