Package: pygobject Version: 2.27.0-2 We just discussed how to ship overrides for GIR typelibs for third-party packages (i. e. not the standard GTK overrides that already come with pygobject). During that we noticed that merely having the override in the standard Python module directory (/usr/lib/python2.7/dist-packages/) doesn't work.
That's because pygobject, gnome-python etc. currently use pysupport, which unfortunately uses its own directory (/usr/lib/pyshared/...). As both pycentral and pysupport are deprecated, and the Python guys (Matthias Klose etc.) now recommend using dh_python2 and dh_python3 (which comes in the "python" package), it would be nice if we could migrate pygobject and friends to dh_python2. I attached a patch which produces a working package, and gobject, gi.repository etc. just work fine. The problem is that this breaks all packages which ship stuff in /usr/lib/pyshared/python2.7/gtk-2.0/ (python-vte, python-gconf, python-gnome2, python-gnomecanvas, python-notify, python-gtkspell, python-glade2, python-gtk2,python-wnck, python-gnomekeyring). Those are about 5 source packages only, but if we want to do the switch to dh_python2, we need to convert all of them in lockstep. The advantage would be that if we do it early (i. e. now, when we don't have packages which ship custom GI overrides yet), we avoid that these new packages also use dh_pysupport. Over time, it'll get harder and harder to do the switch, as we get more packages. What do you think about this? I'm happy to help out with the migration once we have consensus about how and whether to do it. Thanks for considering! Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
=== modified file 'debian/control.in' --- debian/control.in 2011-02-04 08:07:27 +0000 +++ debian/control.in 2011-02-23 09:17:31 +0000 @@ -5,7 +5,6 @@ XSBC-Original-Maintainer: Josselin Mouette <[email protected]> Uploaders: @GNOME_TEAM@ Build-Depends: debhelper (>= 7), - python-support (>= 0.4), gnome-pkg-tools (>= 0.10), cdbs, dh-autoreconf, === modified file 'debian/rules' --- debian/rules 2011-02-04 10:50:03 +0000 +++ debian/rules 2011-02-23 09:29:49 +0000 @@ -163,7 +163,7 @@ dh_fixperms -i # More permission fixing chmod 755 `grep -rl "^#\!.*python" debian/python-gobject-dev/usr` - dh_pysupport -i /usr/share/pygobject + dh_python2 -i /usr/share/pygobject dh_installdeb -i dh_gencontrol -i dh_md5sums -i @@ -182,7 +182,7 @@ dh_link -s dh_compress -s -X.py dh_fixperms -s - dh_pysupport -s + dh_python2 -a dh_makeshlibs -ppython-gobject -V'python-gobject (>= 2.15.2)' dh_makeshlibs -ppython-gobject-dbg -V'python-gobject-dbg (>= 2.15.2)' dh_installdeb -s
signature.asc
Description: Digital signature

