Skip to content

Commit e647ac3

Browse files
committed
Remove python cache after tests
1 parent ae711d2 commit e647ac3

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
@@ -165,13 +165,6 @@ find /opt/_internal -name '*.a' -print0 | xargs -0 rm -f
165165
find /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-
175168
for 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
181174
done
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.
184184
find /usr/include/ -type f -exec sed -i 's/\bextern _*inline_*\b/extern __inline __attribute__ ((__gnu_inline__))/g' {} +

0 commit comments

Comments
 (0)