@@ -168,13 +168,6 @@ find /opt/_internal -name '*.a' -print0 | xargs -0 rm -f
168168find /opt/_internal -type f -print0 \
169169 | xargs -0 -n1 strip --strip-unneeded 2> /dev/null || true
170170
171- # We do not need the Python test suites, or indeed the precompiled .pyc and
172- # .pyo files. Partially cribbed from:
173- # https://github.com/docker-library/python/blob/master/3.4/slim/Dockerfile
174- find /opt/_internal -depth \
175- \( -type d -a -name test -o -name tests \) \
176- -o \( -type f -a -name ' *.pyc' -o -name ' *.pyo' \) | xargs rm -rf
177-
178171for PYTHON in /opt/python/* /bin/python; do
179172 # Smoke test to make sure that our Pythons work, and do indeed detect as
180173 # being manylinux compatible:
@@ -183,5 +176,12 @@ for PYTHON in /opt/python/*/bin/python; do
183176 $PYTHON $MY_DIR /ssl-check.py
184177done
185178
179+ # We do not need the Python test suites, or indeed the precompiled .pyc and
180+ # .pyo files. Partially cribbed from:
181+ # https://github.com/docker-library/python/blob/master/3.4/slim/Dockerfile
182+ find /opt/_internal -depth \
183+ \( -type d -a -name test -o -name tests \) \
184+ -o \( -type f -a -name ' *.pyc' -o -name ' *.pyo' \) | xargs rm -rf
185+
186186# Fix libc headers to remain compatible with C99 compilers.
187187find /usr/include/ -type f -exec sed -i ' s/\bextern _*inline_*\b/extern __inline __attribute__ ((__gnu_inline__))/g' {} +
0 commit comments