diff --git a/debian/python-wxgtk-dbg.postinst b/debian/python-wxgtk-dbg.postinst new file mode 100644 index 0000000000..173d5e893c --- /dev/null +++ b/debian/python-wxgtk-dbg.postinst @@ -0,0 +1,16 @@ +#!/bin/sh + +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-dbg.pth $(( =PRIO - 10 )) + +#DEBHELPER# + diff --git a/debian/libwxgtk-python.prerm b/debian/python-wxgtk-dbg.prerm similarity index 54% rename from debian/libwxgtk-python.prerm rename to debian/python-wxgtk-dbg.prerm index ebf7d74965..f9618753f2 100644 --- a/debian/libwxgtk-python.prerm +++ b/debian/python-wxgtk-dbg.prerm @@ -2,8 +2,10 @@ set -e -PACKAGE="libwxgtk=SOV-python" +PACKAGE="python-wxgtk=V-dbg" dpkg --listfiles $PACKAGE | awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | xargs rm -f >&2 +update-alternatives --remove wx.pth /usr/lib/wx/python/wx=V-dbg.pth + #DEBHELPER# diff --git a/debian/libwxgtk-python.docs b/debian/python-wxgtk.docs similarity index 100% rename from debian/libwxgtk-python.docs rename to debian/python-wxgtk.docs diff --git a/debian/libwxgtk-python.postinst b/debian/python-wxgtk.postinst similarity index 61% rename from debian/libwxgtk-python.postinst rename to debian/python-wxgtk.postinst index a4b6edfbfc..1757ffa56e 100644 --- a/debian/libwxgtk-python.postinst +++ b/debian/python-wxgtk.postinst @@ -9,5 +9,8 @@ if [ "$1" = "configure" ]; then =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 + #DEBHELPER# diff --git a/debian/libwxgtk-dbg-python.prerm b/debian/python-wxgtk.prerm similarity index 56% rename from debian/libwxgtk-dbg-python.prerm rename to debian/python-wxgtk.prerm index eda2ca44bf..86a40e41ff 100644 --- a/debian/libwxgtk-dbg-python.prerm +++ b/debian/python-wxgtk.prerm @@ -2,8 +2,10 @@ set -e -PACKAGE="libwxgtk=SOV-dbg-python" +PACKAGE="python-wxgtk=V" dpkg --listfiles $PACKAGE | awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | xargs rm -f >&2 +update-alternatives --remove wx.pth /usr/lib/wx/python/wx=V.pth + #DEBHELPER# diff --git a/debian/python-wxtools.menu b/debian/python-wxtools.menu new file mode 100644 index 0000000000..91a7eefc8d --- /dev/null +++ b/debian/python-wxtools.menu @@ -0,0 +1,7 @@ +?package(python-wxtools):needs="X11" section="Apps/Programming"\ + title="pycrust" command="/usr/bin/pycrust" +?package(python-wxtools):needs="X11" section="Apps/Programming"\ + title="pyshell" command="/usr/bin/pyshell" +?package(python-wxtools):needs="X11" section="Apps/Programming"\ + title="xrced" command="/usr/bin/xrced" + diff --git a/debian/wxpython.menu b/debian/wxpython.menu deleted file mode 100644 index 09ffee5265..0000000000 --- a/debian/wxpython.menu +++ /dev/null @@ -1,7 +0,0 @@ -?package(wxpython=SOV):needs="X11" section="Apps/Programming"\ - title="pycrust" command="/usr/bin/pycrust" -?package(wxpython=SOV):needs="X11" section="Apps/Programming"\ - title="pyshell" command="/usr/bin/pyshell" -?package(wxpython=SOV):needs="X11" section="Apps/Programming"\ - title="xrced" command="/usr/bin/xrced" -