Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b945752

Browse files
authored
fix: _has_valid_outer_pip when pip is missing (#1003)
1 parent 74ae997 commit b945752

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docs/changelog/1003.fix.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix ``_has_valid_outer_pip`` returning ``True`` when pip is missing, causing build to try using a non-existent pip
2+
instead of falling back to virtualenv.

src/build/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _has_valid_outer_pip(self) -> bool | None:
188188
return True
189189
return False
190190

191-
return True
191+
return None # pragma: no cover
192192

193193
@functools.cached_property
194194
def _has_virtualenv(self) -> bool:

0 commit comments

Comments
 (0)