mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 09:49:29 +02:00
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:
parent
21db8833dc
commit
b2aaf40a3e
6 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue