feat: debian setup, codepsaces install

This commit is contained in:
2024-03-08 00:04:34 +00:00
parent 858f791afd
commit d9283511a3
11 changed files with 24 additions and 18 deletions

View File

@@ -25,7 +25,6 @@ if ! command -v "pyenv" &> /dev/null; then
liblzma-dev
zlib1g-dev
)
pyenv_packages=($(comm -13 <(printf "%s\n" "${pyenv_packages[@]}" | sort) <(dpkg --get-selections | awk '{print $1}' | sort)))
if [ ${#pyenv_packages[@]} -gt 0 ]; then
sudo apt-get install -qq "${pyenv_packages[@]}"
fi
@@ -50,6 +49,8 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
unset virtualenv_path
fi
eval "$(pyenv init --path)"
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv --version