On Tue, Apr 23, 2013 at 9:38 AM, Vinay Sajip <vinay_sa...@yahoo.co.uk> wrote:
> I've made progress in my experiment to replace pkg_resources usage in pip
> with code in distlib. The basic approach is to replace references to
> pkg_resources with references to pip.vendor.distlib.pkg_resources, where the
> latter module is a shim to emulate the pkg_resources API using distlib to
> actually implement the functionality.
>
> Although I don't have the very latest upstream pip updates merged in yet, I
> have test results which mirror the develop branch (one failure, related to my
> test environment - test_correct_pip_version). I believe I have now replaced
> all uses of pkg_resources (when I mentioned this effort previously on this
> list, pip/req.py had not yet been converted).

Very promising!

> Note that the pip.vendor.distlib version is slightly different to the
> released distlib - the main difference being that the metadata version in the
> released distlib is treated as 2.0, whereas for pip I had to change it to
> 1.3.

Given the flux in PEP 426, it's probably best to stick with metadata
1.2 for now. There's no such thing as 1.3, and 2.0 is now going to be
a rather different beast (with the on-disk serialisation format
changing to JSON).

Regards,
Nick.

--
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to