Skip to content

Commit

Permalink
fix: pyenv initial setup and install
Browse files Browse the repository at this point in the history
Requires pyenv to be loaded properly, else won't be found
  • Loading branch information
alexpovel committed Dec 19, 2023
1 parent 32f02da commit 1a35237
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,20 @@ install_language_toolchains() {
curl https://pyenv.run | bash
fi

for version in '3.9' '3.10' '3.11' '3.12'; do
pyenv install --skip-existing "$version"
done
(
# These steps are optional; they just pre-install some versions to save time
# later on. The steps up to `eval` are copied from the docs and might break.
# They are present in `.zshrc` already but we don't have access to that
# here yet.

export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

for version in '3.9' '3.10' '3.11' '3.12'; do
pyenv install --skip-existing "$version"
done
)

pipx install pdm

Expand Down

0 comments on commit 1a35237

Please sign in to comment.