From e781bcc41af974e922e8fc18cfd88dc159e3b17a Mon Sep 17 00:00:00 2001 From: Alex Zorin Date: Sat, 1 Jul 2023 12:29:39 +1000 Subject: [PATCH] try fix pyenv path --- .azure-pipelines/templates/steps/tox-steps.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.azure-pipelines/templates/steps/tox-steps.yml b/.azure-pipelines/templates/steps/tox-steps.yml index 54612f23c..6763ba283 100644 --- a/.azure-pipelines/templates/steps/tox-steps.yml +++ b/.azure-pipelines/templates/steps/tox-steps.yml @@ -27,6 +27,8 @@ steps: - bash: | set -e curl https://pyenv.run | bash + export PYENV_ROOT="$HOME/.pyenv" + command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" pyenv install ${PYTHON_VERSION} pyenv shell ${PYTHON_VERSION}