-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Avoid pip install --dry-run downloading full wheels
#13482
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
Changes from all commits
196f992
a844f3b
fc2eb8d
11d2a6f
62a5d16
afa16f2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| When PEP-658 metadata is available, full distribution files are no longer downloaded when using ``pip lock`` or ``pip install --dry-run``. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -180,11 +180,6 @@ def resolve( | |
|
|
||
| req_set.add_named_requirement(ireq) | ||
|
|
||
| reqs = req_set.all_requirements | ||
| self.factory.preparer.prepare_linked_requirements_more(reqs) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the key change - the resolver no longer triggers additional preparation. Instead, we move this responsibility to consumers of the resolve result. Technically, I could have made the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any sort of documentation attached to the preparer where we could document this contract? While this change makes sense, it is also a bit arbitrary. |
||
| for req in reqs: | ||
| req.prepared = True | ||
| req.needs_more_preparation = False | ||
| return req_set | ||
|
|
||
| def get_installation_order( | ||
|
|
||
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.
I'm not very familiar with the preparer, could you explain why we need to prepare requirements earlier now?
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.
I believe this is because the resolver no longer downloads the files and later
save_linked_requirements()needsreq.local_file_pathto be set.