Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Commit aab54a3

Browse files
committed
check that our pypys work and remove unnecessary stuff
1 parent 476ca37 commit aab54a3

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

docker/build_scripts_pypy/install_pypy.sh

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ function install_one_pypy {
2323
mv "$outdir" "$shortdir"
2424
local pypy=$shortdir/bin/pypy
2525

26+
# add a generic "python" symlink
27+
ln -s pypy $shortdir/bin/python
28+
2629
# remove debug symbols
2730
rm $shortdir/bin/*.debug
2831

@@ -34,8 +37,27 @@ function install_one_pypy {
3437
ln -s /opt/pypy/$shortdir /opt/python/${abi_tag}
3538
}
3639

37-
for PYPY in /pypy*.tar.bz2
40+
for TARBALL in /pypy*.tar.bz2
3841
do
39-
install_one_pypy "$PYPY"
40-
rm "$PYPY"
42+
install_one_pypy "$TARBALL"
43+
rm "$TARBALL"
44+
done
45+
46+
47+
# the following is copied&adapted from
48+
# pypa/manylinux/docker/build_scripts/build.sh
49+
50+
for PYTHON in /opt/pypy/*/bin/python; do
51+
# Smoke test to make sure that our Pythons work, and do indeed detect as
52+
# being manylinux compatible:
53+
$PYTHON /build_scripts/manylinux-check.py
54+
# Make sure that SSL cert checking works
55+
$PYTHON /build_scripts/ssl-check.py
4156
done
57+
58+
# We do not need the Python test suites, or indeed the precompiled .pyc and
59+
# .pyo files. Partially cribbed from:
60+
# https://github.com/docker-library/python/blob/master/3.4/slim/Dockerfile
61+
find /opt/pypy -depth \
62+
\( -type d -a -name test -o -name tests \) \
63+
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) | xargs rm -rf

0 commit comments

Comments
 (0)