aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2022-04-07 16:22:24 +0300
committerEli Schwartz <eschwartz@archlinux.org>2022-04-11 16:59:40 -0400
commit1bb0387e676bd3775d304ff260604d90cd59508e (patch)
tree93e7f1cd347316251733e7abffd2cc80d053273c /ci
parent1420d0daceb10cafb52a7405f157032a5cc811a5 (diff)
downloadmeson-1bb0387e676bd3775d304ff260604d90cd59508e.zip
meson-1bb0387e676bd3775d304ff260604d90cd59508e.tar.gz
meson-1bb0387e676bd3775d304ff260604d90cd59508e.tar.bz2
add pypy3 to the bionic image
Diffstat (limited to 'ci')
-rwxr-xr-xci/ciimage/bionic/install.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/ci/ciimage/bionic/install.sh b/ci/ciimage/bionic/install.sh
index 23e0774..63f6512 100755
--- a/ci/ciimage/bionic/install.sh
+++ b/ci/ciimage/bionic/install.sh
@@ -58,6 +58,22 @@ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2 \
python3 -m pip install -U "${base_python_pkgs[@]}" "${python_pkgs[@]}"
+pushd /opt
+# Download and install PyPy3.8, and link it to /usr/bin/pypy3
+# At some point it would be more robust to download and parse
+# https://downloads.python.org/pypy/versions.json
+wget https://downloads.python.org/pypy/pypy3.8-v7.3.9-linux64.tar.bz2
+pypy_sha256="08be25ec82fc5d23b78563eda144923517daba481a90af0ace7a047c9c9a3c34"
+if [ $pypy_sha256 != $(sha256sum pypy3.8-v7.3.9-linux64.tar.bz2 | cut -f1 -d" ") ]; then
+ echo bad sha256 for PyPy
+ exit -1
+fi
+tar -xf pypy3.8-v7.3.9-linux64.tar.bz2
+pypy3.8-v7.3.9-linux64/bin/pypy3 -m ensurepip
+popd
+ln -s /opt/pypy3.8-v7.3.9-linux64/bin/pypy3 /usr/bin/pypy3
+
+
# Install the ninja 0.10
wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip
unzip ninja-linux.zip -d /ci