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