File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ ENV PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
11
11
ENV PIPENV_VENV_IN_PROJECT=true
12
12
ENV PYENV_ROOT="$HOME/.pyenv"
13
13
14
+ # configure the default intepreter for PyCharm
15
+ ENV PYCHARM_PYTHON_PATH="$HOME/.pyenv/shims/python"
16
+
14
17
RUN sudo install-packages \
15
18
# Install python compiling dependencies for pyenv
16
19
python3-pip make build-essential libssl-dev zlib1g-dev \
Original file line number Diff line number Diff line change 57
57
command : [rm /tmp/.vscs_add.lock; for sj in "$HOME/.vscode-server/data/Machine/settings.json" "/workspace/.vscode-remote/data/Machine/settings.json"; do mkdir -p $(dirname "$sj") "$GITPOD_REPO_ROOT" && touch "$sj" && bash -lic 'true' && if ! grep -q 'python' "$sj"; then exit 1; fi; done]
58
58
assert :
59
59
- status == 0
60
+
61
+ - desc : " python default interpreter for PyCharm should be configured"
62
+ entrypoint : [bash, -c]
63
+ command : [echo $PYCHARM_PYTHON_PATH]
64
+ assert :
65
+ - status == 0
66
+ - stdout.indexOf("/home/gitpod/.pyenv/shims/python") != -1
You can’t perform that action at this time.
0 commit comments