On Thu, Aug 20, 2015 at 3:14 PM, Antoine Pitrou <solipsis@pitrou.net> wrote:
On Thu, 20 Aug 2015 14:26:44 -0400 Nate Coraor <nate@bx.psu.edu> wrote:
So I need a bit of guidance here. I've arbitrarily chosen some tags - `rhel` for example - and wonder if, like PEP 425's mapping of Python implementations to tags, a defined mapping of Linux distributions to shorthand tags is necessary (of course this would be difficult to keep up to date, but binary-compatibility.cfg would make it less relevant in the long run).
Alternatively, I could simply trust and normalize platform.linux_distribution()[0],
In practice, the `platform` module does not really keep up to date with evolution in the universe of Linux distributions.
Understandable, although so far it's doing a pretty good job: ('Red Hat Enterprise Linux Server', '6.5', 'Santiago') ('CentOS', '6.7', 'Final') ('CentOS Linux', '7.1.1503', 'Core') ('Scientific Linux', '6.2', 'Carbon') ('debian', '6.0.10', '') ('debian', '7.8', '') ('debian', '8.1', '') ('debian', 'stretch/sid', '') ('Ubuntu', '12.04', 'precise') ('Ubuntu', '14.04', 'trusty') ('Fedora', '21', 'Twenty One') ('SUSE Linux Enterprise Server ', '11', 'x86_64') ('Gentoo Base System', '2.2', '') platform.linux_distribution(full_distribution_name=False) might be nice but it made some bad assumptions, e.g. on Scientific Linux it returned the platform as 'redhat'. --nate
Regards
Antoine.
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig