try with patch version if not #1
|
@ -18,12 +18,14 @@ compile-python()
|
|||
local URL="https://www.python.org/ftp/python"
|
||||
(
|
||||
cd /tmp || return 1
|
||||
[ -f $HOME/.local/bin/python${PY_VERSION} ] || return 2
|
||||
wget -qO- "$URL/$PY_VERSION/Python-$PY_VERSION$BETA.tgz" | tar -xzf - || (
|
||||
echo "Version '$PY_VERSION' not found, check on $URL."
|
||||
echo "Ttrying something else." && compile-python `_get_last_patch $PY_VERSION`
|
||||
|
||||
)
|
||||
[ -d "Python-$PY_VERSION$BETA" ] && (cd "Python-$PY_VERSION$BETA"; ./configure --prefix="$HOME/.local/" && make -j "$(nproc)" && make altinstall) &&
|
||||
rm -r "Python-$PY_VERSION$BETA"
|
||||
rm -r "Python-$PY_VERSION$BETA" &&
|
||||
cp $HOME/.local/bin/python${PY_VERSION%.*} $HOME/.local/bin/python${PY_VERSION}
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user
Is this line to "autocorrect" from
3.12
to3.12.0
? (Or from3.11
to3.11.7
?(Beware of the double t)
yep. that's it.