@@ -165,13 +165,6 @@ find /opt/_internal -name '*.a' -print0 | xargs -0 rm -f
165
165
find /opt/_internal -type f -print0 \
166
166
| xargs -0 -n1 strip --strip-unneeded 2> /dev/null || true
167
167
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
-
175
168
for PYTHON in /opt/python/* /bin/python; do
176
169
# Smoke test to make sure that our Pythons work, and do indeed detect as
177
170
# being manylinux compatible:
@@ -180,5 +173,12 @@ for PYTHON in /opt/python/*/bin/python; do
180
173
$PYTHON $MY_DIR /ssl-check.py
181
174
done
182
175
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
+
183
183
# Fix libc headers to remain compatible with C99 compilers.
184
184
find /usr/include/ -type f -exec sed -i ' s/\bextern _*inline_*\b/extern __inline __attribute__ ((__gnu_inline__))/g' {} +
0 commit comments