Codebase list live-build / upstream/5.0_a11 share / hooks / normal / 0170-remove-python-py.hook.chroot
upstream/5.0_a11

Tree @upstream/5.0_a11 (Download .tar.gz)

0170-remove-python-py.hook.chroot @upstream/5.0_a11raw · history · blame

1
2
3
4
5
6
7
8
9
#!/bin/sh

set -e

# Remove Python *.py files.
#
# This removes byte-compiled Python modules to save some space.

find /usr -name "*.pyc" -print0 | xargs -0r rm -f