Skip to content

Commit b615a39

Browse files
authored
Fix pyenv version not installed edge case (#5697)
* Bump pythonfinder to 2.0.3
1 parent b896dae commit b615a39

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pipenv/vendor/pythonfinder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from .models import SystemPath
55
from .pythonfinder import Finder
66

7-
__version__ = "2.0.2"
7+
__version__ = "2.0.3"
88

99

1010
__all__ = ["Finder", "SystemPath", "InvalidPythonVersion"]

pipenv/vendor/pythonfinder/models/path.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,14 +462,14 @@ def alternate_sub_finder(obj):
462462
found_version = sub_finder(path)
463463
if found_version:
464464
return found_version
465-
if alternate_sub_finder:
465+
if name and not (minor or patch or pre or dev or arch or major):
466466
for path in paths:
467467
found_version = alternate_sub_finder(path)
468468
if found_version:
469469
return found_version
470470

471471
ver = next(iter(self.get_pythons(sub_finder)), None)
472-
if not ver and alternate_sub_finder is not None:
472+
if not ver and name and not (minor or patch or pre or dev or arch or major):
473473
ver = next(iter(self.get_pythons(alternate_sub_finder)), None)
474474

475475
if ver:

pipenv/vendor/vendor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plette[validation]==0.4.4
1212
ptyprocess==0.7.0
1313
pydantic==1.10.7
1414
python-dotenv==1.0.0
15-
pythonfinder==2.0.2
15+
pythonfinder==2.0.3
1616
requirementslib==2.3.0
1717
ruamel.yaml==0.17.21
1818
shellingham==1.5.0.post1

0 commit comments

Comments
 (0)