remove remnants after f0d9f41a
This commit is contained in:
parent
2bd64c4c32
commit
6f32deea79
@ -260,12 +260,6 @@ RUN libpython="${PYTHON_SITE_PACKAGES%/*}" ; \
|
|||||||
"${libpython}/turtle.py" \
|
"${libpython}/turtle.py" \
|
||||||
"${libpython}/turtledemo" \
|
"${libpython}/turtledemo" \
|
||||||
; \
|
; \
|
||||||
rm -rfv \
|
|
||||||
"${PYTHON_SITE_PACKAGES}/pkg_resources/tests" \
|
|
||||||
"${PYTHON_SITE_PACKAGES}/setuptools/tests" \
|
|
||||||
"${PYTHON_SITE_PACKAGES}/setuptools/_distutils/tests" \
|
|
||||||
"${PYTHON_SITE_PACKAGES}/setuptools/_vendor/importlib_resources/tests" \
|
|
||||||
; \
|
|
||||||
find "${PYTHON_SITE_PACKAGES}/" -iname '*.exe' -ls -delete ; \
|
find "${PYTHON_SITE_PACKAGES}/" -iname '*.exe' -ls -delete ; \
|
||||||
python-rm-cache.sh /usr/local
|
python-rm-cache.sh /usr/local
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ RUN w=$(mktemp -d) ; : "${w:?}" ; \
|
|||||||
## avoid changing already present packages
|
## avoid changing already present packages
|
||||||
RUN find "${PYTHON_SITE_PACKAGES}/" -mindepth 1 -maxdepth 1 -printf '%P\0' \
|
RUN find "${PYTHON_SITE_PACKAGES}/" -mindepth 1 -maxdepth 1 -printf '%P\0' \
|
||||||
| sed -zEn \
|
| sed -zEn \
|
||||||
-e '/^((pip|setuptools|wheel)-.+\.dist-info|distutils-precedence\.pth|_distutils_hack|pip|pkg_resources|setuptools|wheel)$/p' \
|
-e '/^pip(|-.+\.dist-info)$/p' \
|
||||||
| env -C "${PYTHON_SITE_PACKAGES}" xargs -0r \
|
| env -C "${PYTHON_SITE_PACKAGES}" xargs -0r \
|
||||||
rm -rf
|
rm -rf
|
||||||
|
|
||||||
@ -129,8 +129,8 @@ RUN libpython="${PYTHON_SITE_PACKAGES%/*}" ; \
|
|||||||
python3 -m compileall -q -j 2 ; \
|
python3 -m compileall -q -j 2 ; \
|
||||||
find "${PYTHON_SITE_PACKAGES}/" -mindepth 1 -maxdepth 1 -printf '%P\0' \
|
find "${PYTHON_SITE_PACKAGES}/" -mindepth 1 -maxdepth 1 -printf '%P\0' \
|
||||||
| sed -zE \
|
| sed -zE \
|
||||||
-e '/\.(dist-info|pth|txt)$/d' \
|
-e '/\.(dist-info|pth|so|txt)$/d' \
|
||||||
-e '/^(pip|pkg_resources|setuptools|wheel)$/d' \
|
-e '/^pip$/d' \
|
||||||
| sort -zV \
|
| sort -zV \
|
||||||
| env -C "${PYTHON_SITE_PACKAGES}" xargs -0r \
|
| env -C "${PYTHON_SITE_PACKAGES}" xargs -0r \
|
||||||
python3 -m compileall -q -j 2
|
python3 -m compileall -q -j 2
|
||||||
|
@ -36,10 +36,6 @@ buildah bud \
|
|||||||
--build-arg "PYTHONTAG=${PYTHONTAG}" \
|
--build-arg "PYTHONTAG=${PYTHONTAG}" \
|
||||||
--env "PYTHON_SITE_PACKAGES=${PYTHON_SITE_PACKAGES}" \
|
--env "PYTHON_SITE_PACKAGES=${PYTHON_SITE_PACKAGES}" \
|
||||||
--unsetenv GPG_KEY \
|
--unsetenv GPG_KEY \
|
||||||
--unsetenv PYTHON_PIP_VERSION \
|
|
||||||
--unsetenv PYTHON_SETUPTOOLS_VERSION \
|
|
||||||
--unsetenv PYTHON_GET_PIP_SHA256 \
|
|
||||||
--unsetenv PYTHON_GET_PIP_URL \
|
|
||||||
|
|
||||||
|
|
||||||
c=$(buildah from --pull=never "${img}") || true
|
c=$(buildah from --pull=never "${img}") || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user