Update homeassistant-core-install.sh

This commit is contained in:
tteckster
2024-02-01 21:57:34 -05:00
committed by GitHub
parent 699bc64b4c
commit 992aae0a09
+11 -1
View File
@@ -45,7 +45,9 @@ $STD apt-get install -y \
libatlas-base-dev
msg_ok "Installed Dependencies"
msg_info "Installing Python3.12.1 (Patience, building from source)"
read -r -p "Would you like to build Python 3.12.1 (default 3.11.2)? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing Python 3.12.1 (Patience, building from source.)"
$STD apt-get remove -y python3
curl -sL https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tar.xz | tar xJf -
cd Python-3.12.1
@@ -56,6 +58,14 @@ $STD update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/pytho
cd ~
rm -rf Python-3.12.1
msg_ok "Installed Python 3.12.1"
else
msg_info "Updating Python3"
$STD apt-get install -y \
python3-dev \
python3-pip \
python3-venv
msg_ok "Updated Python3"
fi
msg_info "Installing Home Assistant-Core"
mkdir /srv/homeassistant