Message381750
> In the case of this it's mood to even discuss requiring
> os-release. (a) the PR does not add a hard dependency
> on os-release, and (b) the file is present anyway.
For anything outside cpython, there is the distro module, and the distro module is checking os-release first if it exists. I don't see a good value to add a second API for a subset of the distro module. Apparently the distro module is used by other projects.
$ apt rdepends python3-distro | grep '^ [DRS]' | wc -l
33
If you think, distro information is needed to run cpython's tests, then make that function available as part of the tests, and don't promote that as a new API, although it is better in many cases to rely on feature tests instead of version information and distro names. Don't expose it as yet another API. |
|
Date |
User |
Action |
Args |
2020-11-24 14:26:02 | doko | set | recipients:
+ doko, vstinner, christian.heimes, r.david.murray, pmpp, matrixise, cstratak |
2020-11-24 14:26:02 | doko | set | messageid: <1606227962.43.0.342136967684.issue28468@roundup.psfhosted.org> |
2020-11-24 14:26:02 | doko | link | issue28468 messages |
2020-11-24 14:26:02 | doko | create | |
|