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 \
17
17
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
18
18
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
19
19
# 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 \
22
22
&& pyenv install ${PYTHON_VERSION} \
23
23
&& pyenv global ${PYTHON_VERSION} \
24
24
&& 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 42
42
- stdout.indexOf("/workspace/.pyenv_mirror") != -1
43
43
44
44
# 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
53
53
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
62
62
63
63
- desc : " VSCode Python settings are correctly applied"
64
64
entrypoint : [env, GITPOD_REPO_ROOT=/workspace/test, bash, -lic]
You can’t perform that action at this time.
0 commit comments