#! /bin/sh -e
#
# prerm script for the Debian @PVER@-base package.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#

PACKAGE=`basename $0 .prerm`

dpkg --listfiles $PACKAGE |
        awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
        xargs rm -f >&2

rmdir /usr/local/lib/python@VER@/site-packages 2>/dev/null && \
        rmdir /usr/local/lib/python@VER@ 2>/dev/null || \
        true


#DEBHELPER#
