void-packages/common/hooks/post-install/02-remove-python-bytecode-files.sh

8 lines
168 B
Bash
Raw Normal View History

# This hook removes python bytecode files (.py[co]).
hook() {
if [ -d "${PKGDESTDIR}" ]; then
find ${PKGDESTDIR} -type f -name '*.py[co]' -delete
fi
}