Merge pull request #8145 from sbidoul/simplfy-should_cache-sbi

This commit is contained in:
Pradyun Gedam 2020-05-21 21:30:40 +05:30 committed by GitHub
commit 76b865155e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -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: