export PATH="/bb:$PATH"

update-python-modules --post-install

if [ -d /tmp/tcloop/APPNAME/ ]; then
   rm /usr/lib/python2.7/dist-packages/python-support.pth
   rm /usr/lib/python2.6/dist-packages/python-support.pth

   cp -af /tmp/tcloop/APPNAME/usr/lib/python2.6/dist-packages/python-support.pth /usr/lib/python2.6/dist-packages/
   cp -af /tmp/tcloop/APPNAME/usr/lib/python2.7/dist-packages/python-support.pth /usr/lib/python2.7/dist-packages/
fi

if ! [ -e /var/lib/python-support ]; then
    ln -sf /usr/lib/pymodules /var/lib/python-support
fi

update-python-modules --post-install python-support.private