On Fri, Nov 28, 2014 at 04:03:59PM +1000, Nick Coghlan wrote:
> Here's my proposed change:> > =================> The default platform tag is distutils.util.get_platform() with all> hyphens - and periods . replaced with underscore _ . If> /etc/os-release [N] exists on the system, then the values in the 'ID'> and 'VERSION_ID' fields are read, all hyphens - and periods . replaced> with underscore _ , and the results appended to the default tag after> a separating underscore."> > Examples:> > * win32> * macosx_10_6_intel> * linux_x86_64_fedora_20> * linux_x86_64_rhel_7_0> * linux_x86_64_debian_7_0> * linux_x86_64_ubuntu_14_04> =================> > The [N] reference would then be a reference to> http://www.freedesktop.org/software/systemd/man/os-release.html for> the definition of the format of os-release. (Note that while the> format originated with systemd, plenty of distros have also started> providing it regardless of which init system they use)
...
> This also won't help with older Linux distros that don't offer> /etc/os-release, but I'm OK with that - those can just continue to> show up as "linux_x86_64", and PyPI can continue to disallow those> uploads.
I was curious about what "older distros" meant in the context of Ubuntu,
so I looked it up: /etc/os-release exists in Ubuntu 12.04 LTS (and
newer) but didn't exist in Ubuntu 10.04 LTS.
Support for Ubuntu 10.04 LTS ends in April 2015.
Marius Gedminas
--
Give a man a computer program and you give him a headache, but teach him to
program computers and you give him the power to create headaches for others for
the rest of his life...
-- R. B. Forest
_______________________________________________
Distutils-SIG maillist - Dist...@python.org
https://mail.python.org/mailman/listinfo/distutils-sig