From 132b9fb3884345dcaf398e559fd0860339cbad59 Mon Sep 17 00:00:00 2001 From: ryenus Date: Sat, 29 Jun 2024 13:52:50 +0800 Subject: [PATCH] pyenv: skip installed version --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d07ba1f90ff..0159d803519 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ before_install: - zsh --version - dpkg -s dash | grep ^Version | awk '{print $2}' # install python - - pyenv install 2.7.18 + - [ -d "$(pyenv root)/versions/2.7.18" ] || pyenv install 2.7.18 - pyenv local 2.7.18 || echo 'pyenv failed' - python -V install: