diff --git a/.travis.yml b/.travis.yml index 6ffd403d9..0a170f5e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,10 +62,6 @@ matrix: - PYTHON_CONFIGURE_OPTS="--enable-framework" before_install: - bash ./scripts/ci/before_install.sh - - if [[ -n "$PYTHON_VER" ]]; then - pyenv shell $PYTHON_VER; - fi - - python --version - source env.sh - python --version install: diff --git a/scripts/ci/before_install.sh b/scripts/ci/before_install.sh index e0f1d5629..58067aa7c 100644 --- a/scripts/ci/before_install.sh +++ b/scripts/ci/before_install.sh @@ -61,5 +61,6 @@ fi if [[ -n "$PYTHON_VER" ]]; then eval "$(pyenv init -)" pyenv install --skip-existing --keep --verbose "$PYTHON_VER" + echo 'eval "$(pyenv init -)"' >> env.sh echo "pyenv shell $PYTHON_VER" >> env.sh fi