Bug#614764: pygobject: Please move to dh_python2

Ken VanDine ken.vandine at canonical.com
Wed Feb 23 13:55:13 UTC 2011


On Wed, 2011-02-23 at 11:17 +0100, Martin Pitt wrote:
> 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
> 

A big +1 from me.   I think it makes sense and if we want to do it, it
does need to be now.

Ken







More information about the pkg-gnome-maintainers mailing list