[Distutils] Working toward Linux wheel support

Nate Coraor nate at bx.psu.edu
Thu Aug 20 21:40:57 CEST 2015


On Thu, Aug 20, 2015 at 3:14 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:

> On Thu, 20 Aug 2015 14:26:44 -0400
> Nate Coraor <nate at 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 at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150820/0f522b58/attachment-0001.html>


More information about the Distutils-SIG mailing list