Remove __pycache__ from some packages

This commit is contained in:
Radon Rosborough 2021-01-23 18:04:51 -08:00
parent 9112a0b2ea
commit 730198de3a
2 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ install:
tar -xf sage.tar.bz2 -C /opt/sagemath --strip-components=1
python2 /opt/sagemath/relocate-once.py
find /opt/sagemath -name __pycache__ -exec rm -rf '{}' ';' -prune
shopt -s dotglob
mv /opt/sagemath/* "${pkg}/opt/sagemath/"

View File

@ -99,6 +99,7 @@ fi`);
parts.push(`\
install -d "\${pkg}/usr/local/bin"
pip3 install "${basename}" --prefix "\${pkg}/opt/${basename}"
find "\${pkg}/opt/${basename}" -name __pycache__ -exec rm -rf '{}' ';' -prune
if [[ -d "\${pkg}/opt/${basename}/bin" ]]; then
ls "\${pkg}/opt/${basename}/bin" | while read name; do