mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "e2bb08fcf722121d50a9476076d893594015ce58" and "e15d82fb7c9c2a4cd6988c27c8c28d12747a6a92" have entirely different histories.
e2bb08fcf7
...
e15d82fb7c
|
@ -42,9 +42,9 @@ $STD apt-get install -y \
|
||||||
libatlas-base-dev
|
libatlas-base-dev
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
#RELEASE=$(curl -s https://www.python.org/downloads/ | grep -oP 'Download Python \K\d+\.\d+\.\d+' | head -1)
|
RELEASE=$(curl -s https://www.python.org/downloads/ | grep -oP 'Download Python \K\d+\.\d+\.\d+' | head -1)
|
||||||
|
|
||||||
msg_info "Compiling Python 3.12 from its source (Additional Patience)"
|
msg_info "Compiling Python ${RELEASE} from its source (Additional Patience)"
|
||||||
$STD apt-get remove -y python3
|
$STD apt-get remove -y python3
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
checkinstall \
|
checkinstall \
|
||||||
|
@ -57,16 +57,15 @@ $STD apt-get install -y \
|
||||||
libc6-dev \
|
libc6-dev \
|
||||||
libbz2-dev
|
libbz2-dev
|
||||||
|
|
||||||
#wget -qO- https://www.python.org/ftp/python/${RELEASE}/Python-${RELEASE}.tar.xz | tar -xJ
|
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-${RELEASE}
|
||||||
cd Python-3.12.2
|
|
||||||
$STD ./configure --enable-optimizations
|
$STD ./configure --enable-optimizations
|
||||||
$STD make -j $(nproc)
|
$STD make -j $(nproc)
|
||||||
$STD make altinstall
|
$STD make altinstall
|
||||||
$STD update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.12 1
|
$STD update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.12 1
|
||||||
cd ~
|
cd ~
|
||||||
rm -rf Python-3.12.2
|
rm -rf Python-${RELEASE}
|
||||||
msg_ok "Installed Python 3.12"
|
msg_ok "Installed Python ${RELEASE}"
|
||||||
|
|
||||||
msg_info "Installing Home Assistant-Core"
|
msg_info "Installing Home Assistant-Core"
|
||||||
mkdir /srv/homeassistant
|
mkdir /srv/homeassistant
|
||||||
|
|
Loading…
Reference in New Issue