speedgolf

in some envs (unsure which), importlib.resources is an
expensive import; drop it when we know it's useless
This commit is contained in:
ed 2025-04-07 20:34:55 +00:00
parent 21db8833dc
commit b2aaf40a3e
6 changed files with 13 additions and 1 deletions

View file

@ -32,6 +32,9 @@ rm -rf \
/tmp/pe-* /z/copyparty-sfx.py \
ensurepip pydoc_data turtle.py turtledemo lib2to3
# speedhack
sed -ri 's/os.environ.get\("PRTY_NO_IMPRESO"\)/"1"/' /usr/lib/python3.*/site-packages/copyparty/util.py
# drop bytecode
find / -xdev -name __pycache__ -print0 | xargs -0 rm -rf