Skip to content

Instantly share code, notes, and snippets.

@alexandremendoncaalvaro
Last active January 6, 2023 02:11
Show Gist options
  • Save alexandremendoncaalvaro/6eb05914ed4183718a72edcbfd41c053 to your computer and use it in GitHub Desktop.
Save alexandremendoncaalvaro/6eb05914ed4183718a72edcbfd41c053 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
echo "[INFO] Installing Python3/ Pyenv Dependencies.."
sudo apt install -y python3-pip git make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
gdb lcov libgdbm-dev libncurses5-dev libreadline6-dev \
lzma lzma-dev uuid-dev
echo "[INFO] Installing Pyenv.."
curl https://pyenv.run | bash
echo "[INFO] Installing Poetry.."
curl -sSL https://install.python-poetry.org | python3 -
echo "[INFO] Configuring System Variables.."
echo '' >> ~/.zshrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
echo '' >> ~/.zshrc
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
exec zsh