Commit b01752c2 authored by Tim Schoof's avatar Tim Schoof
Browse files

Remove tests and pyc/pyo files

parent 6f48ec16
......@@ -251,6 +251,13 @@ build_cpythons $CPYTHON_VERSIONS
# Now we can delete our built OpenSSL headers/static libs since we've linked everything we need
rm -rf /usr/local/ssl
# We do not need the Python test suites, or indeed the precompiled .pyc and
# .pyo files. Partially cribbed from:
# https://github.com/docker-library/python/blob/master/3.4/slim/Dockerfile
find /opt/_internal -depth \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) | xargs rm -rf
yum -y erase gnupg ${PYTHON_COMPILE_DEPS} > /dev/null 2>&1
yum -y clean all > /dev/null 2>&1
yum list installed
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment