From 16070912baccad3e32114bcaff1a0fc34df2b9e5 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 12 Mar 2024 19:29:59 -0400 Subject: [PATCH] Update homeassistant-core-install.sh tweak --- install/homeassistant-core-install.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/install/homeassistant-core-install.sh b/install/homeassistant-core-install.sh index 327c773f..bb0fbba2 100644 --- a/install/homeassistant-core-install.sh +++ b/install/homeassistant-core-install.sh @@ -44,7 +44,7 @@ msg_ok "Installed Dependencies" RELEASE=$(curl -s https://www.python.org/downloads/ | grep -oP 'Download Python \K\d+\.\d+\.\d+' | head -1) -msg_info "Compiling Python ${RELEASE} from its source (Additional Patience)" +msg_info "Compiling Python 3.12 from its source (Additional Patience)" $STD apt-get remove -y python3 $STD apt-get install -y \ checkinstall \ @@ -57,15 +57,16 @@ $STD apt-get install -y \ libc6-dev \ libbz2-dev -wget -qO- https://www.python.org/ftp/python/${RELEASE}/Python-${RELEASE}.tar.xz | tar -xJ -cd Python-${RELEASE} +#wget -qO- https://www.python.org/ftp/python/${RELEASE}/Python-${RELEASE}.tar.xz | tar -xJ +wget -qO- https://www.python.org/ftp/python/3.12.2/Python-3.12.2.tar.xz | tar -xJ +cd Python-3.12.2 $STD ./configure --enable-optimizations $STD make -j $(nproc) $STD make altinstall $STD update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.12 1 cd ~ -rm -rf Python-${RELEASE} -msg_ok "Installed Python ${RELEASE}" +rm -rf Python-3.12.2 +msg_ok "Installed Python 3.12" msg_info "Installing Home Assistant-Core" mkdir /srv/homeassistant