Remove __pycache__ from some packages
This commit is contained in:
parent
9112a0b2ea
commit
730198de3a
|
@ -22,6 +22,7 @@ install:
|
||||||
tar -xf sage.tar.bz2 -C /opt/sagemath --strip-components=1
|
tar -xf sage.tar.bz2 -C /opt/sagemath --strip-components=1
|
||||||
|
|
||||||
python2 /opt/sagemath/relocate-once.py
|
python2 /opt/sagemath/relocate-once.py
|
||||||
|
find /opt/sagemath -name __pycache__ -exec rm -rf '{}' ';' -prune
|
||||||
|
|
||||||
shopt -s dotglob
|
shopt -s dotglob
|
||||||
mv /opt/sagemath/* "${pkg}/opt/sagemath/"
|
mv /opt/sagemath/* "${pkg}/opt/sagemath/"
|
||||||
|
|
|
@ -99,6 +99,7 @@ fi`);
|
||||||
parts.push(`\
|
parts.push(`\
|
||||||
install -d "\${pkg}/usr/local/bin"
|
install -d "\${pkg}/usr/local/bin"
|
||||||
pip3 install "${basename}" --prefix "\${pkg}/opt/${basename}"
|
pip3 install "${basename}" --prefix "\${pkg}/opt/${basename}"
|
||||||
|
find "\${pkg}/opt/${basename}" -name __pycache__ -exec rm -rf '{}' ';' -prune
|
||||||
|
|
||||||
if [[ -d "\${pkg}/opt/${basename}/bin" ]]; then
|
if [[ -d "\${pkg}/opt/${basename}/bin" ]]; then
|
||||||
ls "\${pkg}/opt/${basename}/bin" | while read name; do
|
ls "\${pkg}/opt/${basename}/bin" | while read name; do
|
||||||
|
|
Loading…
Reference in New Issue