Skip to content

Commit 76b8651

Browse files
authored
Merge pull request #8145 from sbidoul/simplfy-should_cache-sbi
2 parents a14f9aa + 88da344 commit 76b8651

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/pip/_internal/wheel_builder.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,8 @@ def _should_cache(
119119
wheel cache, assuming the wheel cache is available, and _should_build()
120120
has determined a wheel needs to be built.
121121
"""
122-
if not should_build_for_install_command(
123-
req, check_binary_allowed=_always_true
124-
):
125-
# never cache if pip install would not have built
126-
# (editable mode, etc)
122+
if req.editable or not req.source_dir:
123+
# never cache editable requirements
127124
return False
128125

129126
if req.link and req.link.is_vcs:

0 commit comments

Comments
 (0)