1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 04:23:47 -05:00

Revert "Drop inferring version to install from pyenv local"

This commit is contained in:
native-api
2021-06-14 17:08:46 +03:00
committed by GitHub
parent 1706436fae
commit e154693dc6
2 changed files with 16 additions and 0 deletions

View File

@@ -115,7 +115,12 @@ done
unset VERSION_NAME
# The first argument contains the definition to install. If the
# argument is missing, try to install whatever local app-specific
# version is specified by pyenv. Show usage instructions if a local
# version is not specified.
DEFINITION="${ARGUMENTS[0]}"
[ -n "$DEFINITION" ] || DEFINITION="$(pyenv-local 2>/dev/null || true)"
[ -n "$DEFINITION" ] || usage 1 >&2
# Define `before_install` and `after_install` functions that allow