1
0
Fork 0
forked from s3lph/matemat

Ignore "failure" of find for removal of __pycache__ directories

This commit is contained in:
s3lph 2018-11-07 15:15:52 +01:00
parent 75ec39852d
commit 0d88e683f6

View file

@ -75,7 +75,7 @@ build_debian:
- mkdir -p matemat/usr/lib/python3/dist-packages/ - mkdir -p matemat/usr/lib/python3/dist-packages/
- rsync -a matemat/usr/lib/python3.6/site-packages/ matemat/usr/lib/python3/dist-packages/ - rsync -a matemat/usr/lib/python3.6/site-packages/ matemat/usr/lib/python3/dist-packages/
- rm -rf matemat/usr/lib/python3.6/ - rm -rf matemat/usr/lib/python3.6/
- find matemat/usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \; - find matemat/usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \; 2>/dev/null || true
- find matemat/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \; - find matemat/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \;
- mv matemat/usr/bin/matemat matemat/usr/lib/matemat/matemat - mv matemat/usr/bin/matemat matemat/usr/lib/matemat/matemat
- rm -rf matemat/usr/bin - rm -rf matemat/usr/bin