mirror of https://github.com/pypa/pip
Merge pull request #8145 from sbidoul/simplfy-should_cache-sbi
This commit is contained in:
commit
76b865155e
|
@ -119,11 +119,8 @@ def _should_cache(
|
||||||
wheel cache, assuming the wheel cache is available, and _should_build()
|
wheel cache, assuming the wheel cache is available, and _should_build()
|
||||||
has determined a wheel needs to be built.
|
has determined a wheel needs to be built.
|
||||||
"""
|
"""
|
||||||
if not should_build_for_install_command(
|
if req.editable or not req.source_dir:
|
||||||
req, check_binary_allowed=_always_true
|
# never cache editable requirements
|
||||||
):
|
|
||||||
# never cache if pip install would not have built
|
|
||||||
# (editable mode, etc)
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if req.link and req.link.is_vcs:
|
if req.link and req.link.is_vcs:
|
||||||
|
|
Loading…
Reference in New Issue