Add 3.9.0b3.

This commit is contained in:
Julien Palard 2020-06-25 17:33:21 +02:00
parent 23a028c6ec
commit b285715a5b
1 changed files with 6 additions and 4 deletions

10
.bashrc
View File

@ -171,6 +171,7 @@ compile_python()
# Inspired from the great https://gitlab.com/python-devs/ci-images/ # Inspired from the great https://gitlab.com/python-devs/ci-images/
# Thanks Barry Warsaw. # Thanks Barry Warsaw.
local PY_VERSION="$1" local PY_VERSION="$1"
local BETA="$2"
local FLAGS="" local FLAGS=""
if dpkg --compare-versions "$PY_VERSION" ge 3.8.0 # Since 3.8.0 debug builds are ABI compatible, let's use them. if dpkg --compare-versions "$PY_VERSION" ge 3.8.0 # Since 3.8.0 debug builds are ABI compatible, let's use them.
then then
@ -179,11 +180,11 @@ compile_python()
local URL="https://www.python.org/ftp/python" local URL="https://www.python.org/ftp/python"
( (
cd /tmp cd /tmp
wget -qO- $URL/$PY_VERSION/Python-$PY_VERSION.tgz | tar -xzf - || ( wget -qO- $URL/$PY_VERSION/Python-$PY_VERSION$BETA.tgz | tar -xzf - || (
echo "Version not found, check on $URL." echo "Version not found, check on $URL."
) )
[ -d Python-$PY_VERSION ] && (cd Python-$PY_VERSION; ./configure $FLAGS --prefix=$HOME/.local/ && make -j 16 && make altinstall) && [ -d Python-$PY_VERSION$BETA ] && (cd Python-$PY_VERSION$BETA; ./configure $FLAGS --prefix=$HOME/.local/ && make -j 16 && make altinstall) &&
rm -r Python-$PY_VERSION rm -r Python-$PY_VERSION$BETA
) )
} }
@ -193,8 +194,9 @@ compile_all_pythons()
compile_python 3.4.10 & compile_python 3.4.10 &
compile_python 3.5.9 & compile_python 3.5.9 &
compile_python 3.6.10 & compile_python 3.6.10 &
compile_python 3.7.7 & compile_python 3.7.8 rc1 &
compile_python 3.8.3 & compile_python 3.8.3 &
compile_python 3.9.0 b3 &
wait wait
} }