From 9bc47111b3ddf7cb4be9f978a6274d111088bd54 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Tue, 26 Jun 2018 09:05:11 +0900 Subject: [PATCH] Without __pycache__, smaller python --- util/calc-size.sh | 2 +- util/fix-python.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/util/calc-size.sh b/util/calc-size.sh index 980daf60..064fc50c 100755 --- a/util/calc-size.sh +++ b/util/calc-size.sh @@ -3,7 +3,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [ -e "$DIR/../base/usr/python" ]; then - echo 22000 + echo 11000 else echo 4096 fi diff --git a/util/fix-python.sh b/util/fix-python.sh index e8f0427b..197c5dc0 100755 --- a/util/fix-python.sh +++ b/util/fix-python.sh @@ -10,8 +10,7 @@ pushd $HDD_PATH/usr/python/lib || exit 1 chmod -w libpython3.6m.so echo "Killing __pycache__ directories..." - rm -r ./python3.6/__pycache__ - rm -r ./python3.6/importlib/__pycache__ + find . -name __pycache__ -exec rm -r "{}" \; # Let's kill some other shit while we're in here pushd python3.6 || exit 1