-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add topic guide: Dependency Resolution #10102
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good to me! Hopefully it will help more people understand why pip needs to seemingly waste unnecessary resources on this. (The issue is out of pip’s control.)
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
This reads clearer than the initial iteration. Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> Co-authored-by: Paul Moore <p.f.moore@gmail.com>
Uhhh... I should set up GPG signing on this laptop. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The writeup makes sense to me (with a couple of parts I think can be improved). I am not sure how useful users would find this, but improvements can always be made later as long as the description here is not inaccurate.
pip does not have all the information it needs to work out the dependencies of | ||
the requested packages. Over the course of the dependency resolution process, | ||
pip needs to download distributions of the package, which can then provide | ||
the list of dependencies that the package requires. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first sentence is confusing for a pip user IMO. pip cannot work out dependencies? WTF?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. This needs something like "when it begins".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
- Clarify that pip is incrementally building up this information. - Clarify that pip has to download files, which contain the dependency information. - Hint at the fact that this is a recursive process.
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
Good bot. |
This one needs a proper review, since I can't figure out how to best explain things here; and what stuff to move into this.
The basic idea was to move https://pip.pypa.io/en/stable/user_guide/#dependency-resolution-backtracking into this document, which would go a long way toward making the user guide shorter.
Toward #9475.