X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bdc493773e6bf76643e3ae1abd2c3b7ad6759a9..6f58f3d7e0ed959dd6a568a70161ec14ec524feb:/debian/python-wxgtk.postinst?ds=inline diff --git a/debian/python-wxgtk.postinst b/debian/python-wxgtk.postinst index 1757ffa56e..80f9e849ec 100644 --- a/debian/python-wxgtk.postinst +++ b/debian/python-wxgtk.postinst @@ -2,15 +2,14 @@ set -e -WXPYTHONDIR="/=WXPYDIR" - -if [ "$1" = "configure" ]; then - =PY /usr/lib/=PY/compileall.py -q ${WXPYTHONDIR} - =PY -O /usr/lib/=PY/compileall.py -q ${WXPYTHONDIR} -fi - -update-alternatives --install /usr/lib/=PY/site-packages/wx.pth wx.pth \ - /usr/lib/wx/python/wx=V.pth =PRIO +WXPYTHONDIR="=WXPYDIR" +PYVERS="=PYVERS" + +for PY in $PYVERS; do + update-alternatives --install /usr/lib/python$PY/site-packages/wx.pth \ + wx-python$PY.pth \ + /usr/lib/wx/python$PY/wx=V.pth =PRIO +done #DEBHELPER#