[Python-modules-team] Bug#786580: pip and distlib mismatch breaks pip and virtualenv

Felix C. Stegerman flx at obfusk.net
Sun May 24 19:34:38 UTC 2015


Hi,

I've looked at what's going on, and the problem seems to be caused by
the fact that distlib 0.1.9 uses PEP426 and 0.2.0 uses PEP440; the
latter has an extra "epoch" field.

Because pip.util (in the version included with Debian) expects the
output not to have this epoch field, it breaks.

Downgrading python-distlib and python-distlib-whl to the version in
testing (0.1.9) makes pip and virtualenv work again.

Alternatively, updating to the latest pip (which is not yet available
in Debian) would probably fix this as well.

The third option would be to temporarily patch the current pip to
support both versions of distlib.  I've attached a patch (for
pip/util.py) that seems to work.

- Felix
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pip_util.diff
Type: text/x-diff
Size: 530 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20150524/3382ac5f/attachment-0002.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20150524/3382ac5f/attachment-0002.sig>


More information about the Python-modules-team mailing list