<p dir="ltr">It would be great to maintain and install pkg_resources separately. The idea has come up before, including the idea of just putting pkg_resources in the system library without the rest of setuptools (it will stay on pypi now - pip install pkg_resources)</p>

<div class="gmail_quote">On Mar 9, 2013 1:29 PM, "Paul Moore" <<a href="mailto:p.f.moore@gmail.com">p.f.moore@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As part of a discussion on a pip issue, it was noted that if pip<br>
depends on distlib for installer capabilities (e.g., locators, wheel<br>
installation, version and requirement parsing and matching, etc) then<br>
the user needs distlib installed as well as pip. That shouldn't be an<br>
issue for an end user, any more than having pip itself installed would<br>
be.<br>
<br>
However, there are some capabilites of distlib (notably the "exports"<br>
functionality that replaces setuptools' entry points) that are<br>
intended to be used at runtime, by the end user. (I suspect, but<br>
haven't checked, that the exe wrapper functionality depends on exports<br>
as well - it certainly does in setuptools). That means that the end<br>
user *is* affected by the fact that pip depends on distlib. For<br>
example, if the user needs a later version of distlib, it's quite<br>
likely that he won't be able to "pip install" it, as pip typically has<br>
trouble upgrading its own dependencies (for obvious reasons...)<br>
<br>
Would it be worth considering splitting distlib into two separate<br>
parts - one that is intended solely for writers of installers and<br>
similar tools, and another for "runtime support" functions that end<br>
users would use? It may not be a practical thing to achieve, but it<br>
would be worth at least understanding the trade-offs involved.<br>
<br>
Paul.<br>
<br>
PS The same issue exists in setuptools, but as far as I am aware,<br>
setuptools was deliberately designed to provide both the installation<br>
tools and runtime support in the one package. (And IIUC, even with<br>
setuptools, pkg_resources is the only component that includes runtime<br>
support, so in theory it is possible to split the two parts up).<br>
_______________________________________________<br>
Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">http://mail.python.org/mailman/listinfo/distutils-sig</a><br>
</blockquote></div>