Skip to content

Commit 2e69575

Browse files
committed
Fix python test removal
1 parent 3625dc6 commit 2e69575

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docker/build_scripts/build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,9 @@ find /opt/_internal -type f -print0 \
170170
# We do not need the Python test suites, or indeed the precompiled .pyc and
171171
# .pyo files. Partially cribbed from:
172172
# https://github.com/docker-library/python/blob/master/3.4/slim/Dockerfile
173-
find /opt/_internal \
173+
find /opt/_internal -depth \
174174
\( -type d -a -name test -o -name tests \) \
175-
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
176-
-print0 | xargs -0 rm -f
175+
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) | xargs rm -rf
177176

178177
for PYTHON in /opt/python/*/bin/python; do
179178
# Smoke test to make sure that our Pythons work, and do indeed detect as

0 commit comments

Comments
 (0)