PHP 8.5.2
Preview: public_modules.rtremove Size: 648 B
/usr/share/python3/runtime.d/public_modules.rtremove

#! /bin/sh
set -e

VERSION=${2#python}
if which py3clean >/dev/null 2>&1; then
	if [ "$VERSION" = 3.1 ]; then
		find /usr/lib/python3.1/dist-packages -name '*.py[co]' -delete
        find /usr/lib/python3/dist-packages -name '*.py[co]' -delete
	else
		py3clean -V $VERSION /usr/lib/python3/dist-packages
	fi
else
	if [ "$VERSION" = 3.1 ]; then
		find /usr/lib/python3.1/dist-packages -name '*.py[co]' -delete
	else
		TAG=`python$VERSION -c "import sys; print(sys.implementation.cache_tag)"` \
		find /usr/lib/python3/dist-packages -name "*.$TAG.py[co]" -delete
		find /usr/lib/python3/dist-packages -depth -empty -name '__pycache__' -delete
	fi
fi

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
121 B lrwxr-xr-x 2024-02-10 17:03:36
Edit Download
218 B lrwxr-xr-x 2025-11-12 12:15:44
Edit Download
648 B lrwxr-xr-x 2025-11-12 12:15:44
Edit Download
2.01 KB lrwxr-xr-x 2024-04-17 16:23:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).