[Distutils] A smaller step towards de-specializing setuptools/distutils

Paul Moore p.f.moore at gmail.com
Fri Oct 30 10:13:19 EDT 2015


On 30 October 2015 at 08:06, Marius Gedminas <marius at gedmin.as> wrote:
> But code like this doesn't work!  You build a wheel on Python 2.7, you
> get a twine-1.6.4-py2.py3-none-any.whl[*] in your pip wheel cache, and when
> you try to install it on Python 2.6, pip tries to use the same wheel,
> with install_requires computed for Python 2.7 instead of 2.6.  Unless
> you override the wheel dependencies completely in setup.cfg[+].

But this is simply an incorrect package definition, surely? The
setup.cfg override is correct, as would be overriding the wheel to be
py27.py3 (with a separate wheel depending on argparse for py26). The
original form specifies a universal wheel, but provides metadata that
isn't correct for a universal wheel...

Maybe it's not as easy as it could be to *do* this, but nevertheless,
it is possible to specify statically the correct metadata.

Paul


More information about the Distutils-SIG mailing list