pygobject: Please move to dh_python2

Martin Pitt mpitt at debian.org
Wed Feb 23 10:17:13 UTC 2011


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pygobject.dh_python.patch
Type: text/x-diff
Size: 1057 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20110223/ef89055f/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20110223/ef89055f/attachment-0001.pgp>


More information about the pkg-gnome-maintainers mailing list