Skip to content

Commit 802584a

Browse files
authored
Merge pull request #23 from JayH5/rm-python-tests
Delete Python test files like in Python image
2 parents b4cb5c4 + 2f33d14 commit 802584a

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

2/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ RUN set -ex; \
3535
wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/pypy2-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \
3636
echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \
3737
tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \
38+
find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \
3839
rm pypy.tar.bz2; \
3940
\
4041
pypy --version

2/slim/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ RUN set -ex; \
4343
wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/pypy2-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \
4444
echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \
4545
tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \
46+
find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \
4647
rm pypy.tar.bz2; \
4748
\
4849
pypy --version; \

3/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ RUN set -ex; \
3535
wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/pypy3-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \
3636
echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \
3737
tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \
38+
find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \
3839
rm pypy.tar.bz2; \
3940
\
4041
pypy3 --version

3/slim/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ RUN set -ex; \
4343
wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/pypy3-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \
4444
echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \
4545
tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \
46+
find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \
4647
rm pypy.tar.bz2; \
4748
\
4849
pypy3 --version; \

Dockerfile-slim.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ RUN set -ex; \
3434
wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/%%TAR%%-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \
3535
echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \
3636
tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \
37+
find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \
3738
rm pypy.tar.bz2; \
3839
\
3940
%%CMD%% --version; \

Dockerfile.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ RUN set -ex; \
2626
wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/%%TAR%%-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \
2727
echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \
2828
tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \
29+
find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \
2930
rm pypy.tar.bz2; \
3031
\
3132
%%CMD%% --version

0 commit comments

Comments
 (0)