X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bdc493773e6bf76643e3ae1abd2c3b7ad6759a9..a8fc3508e77811dbce06afa7703cfbeb3b037962:/debian/python-wxgtk-dbg.postinst?ds=sidebyside diff --git a/debian/python-wxgtk-dbg.postinst b/debian/python-wxgtk-dbg.postinst index 173d5e893c..4a74affb89 100644 --- a/debian/python-wxgtk-dbg.postinst +++ b/debian/python-wxgtk-dbg.postinst @@ -2,15 +2,20 @@ set -e -WXPYTHONDIR="/=WXPYDIR" +WXPYTHONDIR="=WXPYDIR" +PYVERS="=PYVERS" if [ "$1" = "configure" ]; then - =PY /usr/lib/=PY/compileall.py -q ${WXPYTHONDIR} - =PY -O /usr/lib/=PY/compileall.py -q ${WXPYTHONDIR} + for PY in $PYVERS; do + $PY /usr/lib/$PY/compileall.py -q /usr/lib/$PY/site-pacakges/${WXPYTHONDIR} + $PY -O /usr/lib/$PY/compileall.py -q /usr/lib/$PY/site-pacakges/${WXPYTHONDIR} + done fi -update-alternatives --install /usr/lib/=PY/site-packages/wx.pth wx.pth \ - /usr/lib/wx/python/wx=V-dbg.pth $(( =PRIO - 10 )) +for PY in $PYVERS; do + update-alternatives --install /usr/lib/$PY/site-packages/wx.pth wx.pth \ + /usr/lib/wx/$PY/wx=V-dbg.pth $(( =PRIO - 10 )) +done #DEBHELPER#