]> git.saurik.com Git - wxWidgets.git/blobdiff - debian/python-wxgtk.postinst
exposing common used button impl class
[wxWidgets.git] / debian / python-wxgtk.postinst
index 1757ffa56ee78ed42a5cedd2749ac4d680ecfb02..80f9e849ec04fd890b4936830b7b750b87930c68 100644 (file)
@@ -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#