Skip to content

Commit

Permalink
Improve how cached wheels are presented
Browse files Browse the repository at this point in the history
This is specifically for the case of look ups done in the new resolver.
  • Loading branch information
pradyunsg committed Sep 10, 2020
1 parent c07ef58 commit 963e390
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pip/_internal/operations/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def _download_should_save(self):
def _log_preparing_link(self, req):
# type: (InstallRequirement) -> None
"""Provide context for the requirement being prepared."""
if req.link.is_file:
if req.link.is_file and not req.original_link_is_in_wheel_cache:
message = "Processing %s"
information = str(display_path(req.link.file_path))
else:
Expand All @@ -383,6 +383,10 @@ def _log_preparing_link(self, req):

logger.info(message, information)

if req.original_link_is_in_wheel_cache:
with indent_log():
logger.info("Using cached %s", req.link.filename)

def _get_download_dir(self, link):
# type: (Link) -> Optional[str]
if link.is_wheel and self.wheel_download_dir:
Expand Down

0 comments on commit 963e390

Please sign in to comment.