File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed
Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ RUN sudo install-packages \
1717 libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
1818 libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
1919 # Install PYENV
20- && curl -fsSL https://pyenv.run | bash \
21- && pyenv update \
20+ && git clone https://github.com/ pyenv/pyenv.git ~/.pyenv \
21+ && git -C ~/. pyenv checkout ff93c58babd813066bf2d64d004a5cee33c0f27b \
2222 && pyenv install ${PYTHON_VERSION} \
2323 && pyenv global ${PYTHON_VERSION} \
2424 && for exec in global; do printf '%s\n ' 'source "$HOME/.gp_pyenv.d/userbase.bash"' >> "$PYENV_ROOT/libexec/pyenv-$exec" ; done \
Original file line number Diff line number Diff line change 4242 - stdout.indexOf("/workspace/.pyenv_mirror") != -1
4343
4444# https://github.com/gitpod-io/workspace-images/issues/1000
45- # - desc: "`pyenv install <ver>` should use $HOME/.pyenv/versions/ for imagebuild env"
46- # entrypoint: [bash, -c]
47- # command:
48- # [
49- # ver=3.9.0; pyenv install $ver && test -e $PYENV_ROOT/versions/$ver,
50- # ]
51- # assert:
52- # - status == 0
45+ - desc : " `pyenv install <ver>` should use $HOME/.pyenv/versions/ for imagebuild env"
46+ entrypoint : [bash, -c]
47+ command :
48+ [
49+ ver=3.9.0; pyenv install $ver && test -e $PYENV_ROOT/versions/$ver,
50+ ]
51+ assert :
52+ - status == 0
5353
54- # - desc: "`pyenv install <ver>` should use /workspace/.pyenv_mirror/fakeroot/versions/ for workspace-session env and multi-version shims should work"
55- # entrypoint: [env, GITPOD_REPO_ROOT=/workspace, bash, -ci]
56- # command:
57- # [
58- # ver=3.9.0; pyenv install $ver && test -d $GP_PYENV_FAKEROOT/versions/$ver && test -L $PYENV_ROOT/versions/$ver && pip install cowsay && pyenv global $(pyenv version-name) $ver && cowsay Gitpod,
59- # ]
60- # assert:
61- # - status == 0
54+ - desc : " `pyenv install <ver>` should use /workspace/.pyenv_mirror/fakeroot/versions/ for workspace-session env and multi-version shims should work"
55+ entrypoint : [env, GITPOD_REPO_ROOT=/workspace, bash, -ci]
56+ command :
57+ [
58+ ver=3.9.0; pyenv install $ver && test -d $GP_PYENV_FAKEROOT/versions/$ver && test -L $PYENV_ROOT/versions/$ver && pip install cowsay && pyenv global $(pyenv version-name) $ver && cowsay Gitpod,
59+ ]
60+ assert :
61+ - status == 0
6262
6363- desc : " VSCode Python settings are correctly applied"
6464 entrypoint : [env, GITPOD_REPO_ROOT=/workspace/test, bash, -lic]
You can’t perform that action at this time.
0 commit comments