diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-10-11 13:20:12 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-10-11 13:20:12 -0400 |
commit | b24eb9a8ca82e89e619bbd5b0d6c34fe3389238a (patch) | |
tree | 3fdf6b1543bdaa53fa32e021faa471301d040b07 | |
parent | 805df3b6b95bd8d1442f3f8c50500baa5af9a583 (diff) | |
download | python-setuptools-bitbucket-b24eb9a8ca82e89e619bbd5b0d6c34fe3389238a.tar.gz |
Add a couple of comments to help me understand.
-rw-r--r-- | pkg_resources.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |