Skip to content

Commit

Permalink
feat: add python installation
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlcn-t committed Mar 13, 2024
1 parent 77d5c13 commit 1eca941
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/run_once_before_install-deps.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ fi
if ! command -v nvm &> /dev/null; then
PROFILE=/dev/null bash -c 'curl -fsSL -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash'
fi

python_version="3.12.0"
if ! command -v python3 &> /dev/null || [[ $(python3 --version | awk '{print $2}') < $python_version ]]; then
sudo add-apt-repository ppa:deadsnakes/ppa -y -u > /dev/null 2>&1
python_version=$(echo $python_version | cut -d '.' -f 1-2)
install_or_update "python$python_version"
fi

{{- end }}

# TODO: Implement the installation of dependencies for macOS / when implementing this, everything for linux can be also done with brew

0 comments on commit 1eca941

Please sign in to comment.