Skip to content

Commit

Permalink
Fix pyenv version not installed edge case (#5697)
Browse files Browse the repository at this point in the history
* Bump pythonfinder to 2.0.3
  • Loading branch information
matteius committed May 19, 2023
1 parent b896dae commit b615a39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pipenv/vendor/pythonfinder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .models import SystemPath
from .pythonfinder import Finder

__version__ = "2.0.2"
__version__ = "2.0.3"


__all__ = ["Finder", "SystemPath", "InvalidPythonVersion"]
4 changes: 2 additions & 2 deletions pipenv/vendor/pythonfinder/models/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,14 +462,14 @@ def alternate_sub_finder(obj):
found_version = sub_finder(path)
if found_version:
return found_version
if alternate_sub_finder:
if name and not (minor or patch or pre or dev or arch or major):
for path in paths:
found_version = alternate_sub_finder(path)
if found_version:
return found_version

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

if ver:
Expand Down
2 changes: 1 addition & 1 deletion pipenv/vendor/vendor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plette[validation]==0.4.4
ptyprocess==0.7.0
pydantic==1.10.7
python-dotenv==1.0.0
pythonfinder==2.0.2
pythonfinder==2.0.3
requirementslib==2.3.0
ruamel.yaml==0.17.21
shellingham==1.5.0.post1
Expand Down

0 comments on commit b615a39

Please sign in to comment.