Skip to content

Commit 101fb2e

Browse files
committed
Remove python cache after tests
1 parent c963f48 commit 101fb2e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docker/build_scripts/build.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,6 @@ find /opt/_internal -name '*.a' -print0 | xargs -0 rm -f
168168
find /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-
178171
for 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
184177
done
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.
187187
find /usr/include/ -type f -exec sed -i 's/\bextern _*inline_*\b/extern __inline __attribute__ ((__gnu_inline__))/g' {} +

0 commit comments

Comments
 (0)