mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-13 22:13:52 -05:00
Reflect pyenv-latest switch change in 2.4.8
This commit is contained in:
@@ -317,7 +317,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${VERSION_NAME}" ]] && command -v pyenv-latest >/dev/null; then
|
if [[ -n "${VERSION_NAME}" ]] && command -v pyenv-latest >/dev/null; then
|
||||||
VERSION_NAME="$(pyenv-latest -q "${VERSION_NAME}" || echo "${VERSION_NAME}")"
|
VERSION_NAME="$(pyenv-latest -f "${VERSION_NAME}")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${VERSION_NAME}" ] || [ -z "${VIRTUALENV_NAME}" ]; then
|
if [ -z "${VERSION_NAME}" ] || [ -z "${VIRTUALENV_NAME}" ]; then
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ OUT
|
|||||||
stub pyenv-exec "python -s -m ensurepip : false"
|
stub pyenv-exec "python -s -m ensurepip : false"
|
||||||
stub pyenv-exec "python -s */get-pip.py : true"
|
stub pyenv-exec "python -s */get-pip.py : true"
|
||||||
stub curl true
|
stub curl true
|
||||||
stub pyenv-latest "-q 2.7 : echo 2.7.11"
|
stub pyenv-latest "-f 2.7 : echo 2.7.11"
|
||||||
|
|
||||||
run pyenv-virtualenv "2.7" "venv"
|
run pyenv-virtualenv "2.7" "venv"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user