#!/bin/sh set -e syssite=/usr/lib/@PVER@/site-packages oldsite=/usr/lib/@PVER@/old-site-packages localsite=/usr/local/lib/@PVER@/dist-packages syslink=../../${localsite#/usr/*} case "$1" in install) if [ -z "$2" ] && [ -d $syssite ] && [ ! -h $syssite ]; then echo "new installation of @PVER@-minimal; $syssite is a directory" echo "which is expected a symlink to $localsite." echo "please find the package shipping files in $syssite and" echo "file a bug report to ship these in /usr/lib/@PVER@/dist-packages instead" echo "aborting installation of @PVER@-minimal" exit 1 fi # remember newly installed runtime mkdir -p /var/lib/python touch /var/lib/python/@PVER@_installed ;; upgrade) ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0