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 | f110f30df540d21c4fe7870460c07d70c6c8cd0b (patch) | |
tree | 38a75bfc6d5612a770f89c8692683e2218dac9ad /pkg_resources.py | |
parent | 0f27d17414b5a523614f16e6129ce426df3c3e66 (diff) | |
download | external_python_setuptools-f110f30df540d21c4fe7870460c07d70c6c8cd0b.tar.gz external_python_setuptools-f110f30df540d21c4fe7870460c07d70c6c8cd0b.tar.bz2 external_python_setuptools-f110f30df540d21c4fe7870460c07d70c6c8cd0b.zip |
Add a couple of comments to help me understand.
Diffstat (limited to 'pkg_resources.py')
-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 |