Without __pycache__, smaller python

This commit is contained in:
K. Lange 2018-06-26 09:05:11 +09:00
parent 334d31e1d4
commit 9bc47111b3
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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