From b24eb9a8ca82e89e619bbd5b0d6c34fe3389238a Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 11 Oct 2014 13:20:12 -0400 Subject: Add a couple of comments to help me understand. --- pkg_resources.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg_resources.py b/pkg_resources.py index a5b02223..de50c4b0 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -630,10 +630,15 @@ class WorkingSet(object): tmpl = "%s is installed but %s is required by %s" args = dist, req, list(required_by.get(req)) raise VersionConflict(tmpl % args) + + # push the new requirements onto the stack new_requirements = dist.requires(req.extras)[::-1] requirements.extend(new_requirements) + + # Register the new requirements needed by req for new_requirement in new_requirements: required_by[new_requirement].add(req.project_name) + processed[req] = True # return list of distros to activate -- cgit v1.2.1