Quellcode durchsuchen

Set proper `PYENV_VERSION` during `pyenv install`

pull/113/head
Yamashita Yuu vor 12 Jahren
Ursprung
Commit
589872affb
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. +7
    -1
      plugins/python-build/bin/pyenv-install

+ 7
- 1
plugins/python-build/bin/pyenv-install Datei anzeigen

@ -161,7 +161,13 @@ fi
# unsatisfied local python version can cause the installer to
# fail.)
if [[ "${VERSION_NAME}" == [23]"."* ]]; then
export PYENV_VERSION="$(pyenv-whence "python${VERSION_NAME%%.${VERSION_NAME##*.}}" 2>/dev/null | tail -1 || true)"
for version in "${VERSION_NAME%-dev}" "${VERSION_NAME%.*}" "${VERSION_NAME%%.*}"; do
PYENV_VERSION="$(pyenv-whence "python${version}" 2>/dev/null | tail -n 1 || true)"
if [ -n "${PYENV_VERSION}" ]; then
export PYENV_VERSION
break
fi
done
fi

Laden…
Abbrechen
Speichern