On 30 October 2015 at 08:06, Marius Gedminas <mar...@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 _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig