~mitya57/ubuntu/trusty/dh-python/tests-dependencies

« back to all changes in this revision

Viewing changes to autoscripts/prerm-pypyclean

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2013-07-07 21:47:50 UTC
  • Revision ID: package-import@ubuntu.com-20130707214750-d6wmodmuzp78kt75
Tags: upstream-1.0~b1
Import upstream version 1.0~b1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if which pypyclean >/dev/null 2>&1; then
 
2
        pypyclean -p #PACKAGE# #ARGS#
 
3
else
 
4
        dpkg -L #PACKAGE# | grep '\.py$' | sed -r 's,/([^/]*).py$,/__pycache__/\1\.*,' | xargs rm
 
5
        find /usr/lib/pypy/dist-packages/ -type d -name __pycache__ -empty | xargs rmdir
 
6
fi