Without __pycache__, smaller python
This commit is contained in:
parent
334d31e1d4
commit
9bc47111b3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user