Adding hook to remove python py files, thanks to Colin Watson <cjwatson@ubuntu.com> (Closes: #631281).
This commit is contained in:
parent
cff7687442
commit
37e1c24e22
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Remove Python *.py files.
|
||||
#
|
||||
# This removes byte-compiled Python modules to save some space.
|
||||
|
||||
find /usr -name "*.pyc" -print0 | xargs -0r rm -f
|
|
@ -10,5 +10,5 @@ set -e
|
|||
|
||||
if [ -x /usr/sbin/update-apt-xapian-index ]
|
||||
then
|
||||
/usr/sbin/update-apt-xapian-index --force --quiet
|
||||
PYTHONDONTWRITEBYTECODE=1 /usr/sbin/update-apt-xapian-index --force --quiet
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue