Skip to content

Commit

Permalink
Merge pull request #8145 from sbidoul/simplfy-should_cache-sbi
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg authored May 21, 2020
2 parents a14f9aa + 88da344 commit 76b8651
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/pip/_internal/wheel_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,8 @@ def _should_cache(
wheel cache, assuming the wheel cache is available, and _should_build()
has determined a wheel needs to be built.
"""
if not should_build_for_install_command(
req, check_binary_allowed=_always_true
):
# never cache if pip install would not have built
# (editable mode, etc)
if req.editable or not req.source_dir:
# never cache editable requirements
return False

if req.link and req.link.is_vcs:
Expand Down

0 comments on commit 76b8651

Please sign in to comment.