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