[Distutils] (How) do setuptools/distribute/pip handle circular dependencies?

Marcus Smith qwcode at gmail.com
Sat Nov 10 21:48:53 CET 2012

To echo what others have said, pip has no problem with circularity itself,
that I know of.  The #174 issue mentioned is the limitation of pip's "first
found, wins" logic for handling duplicate requirements (circular or not).
This logic is intentional for the case when a user is explicitly declaring
requirement versions (in req files or in the cli). Those explicit
declarations are "first found" and win.  The user is allowed to be in
charge of the environment.  But for everything else, not explicitly
defined, that logic is a shortcoming. I think this could be fixed now in
pip (in our current packaging environment), but not trivial.

On Fri, Nov 9, 2012 at 2:56 PM, Vinay Sajip <vinay_sajip at yahoo.co.uk> wrote:

> Vinay Sajip <vinay_sajip <at> yahoo.co.uk> writes:
> > So, according to the declarations, each package depends on the other. Can
> > setuptools / distribute deal with this sort of situation? If so, how does
> > that work?
> My question also applies to pip, of course. I know it uses setuptools /
> distribute under the covers, but I'm not sure if it has additional /
> different
> dependency resolution logic.
> Regards,
> Vinay Sajip
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20121110/a69fa271/attachment.html>

More information about the Distutils-SIG mailing list