pygtk2 and its numpy dependency

Adam Jackson ajax at redhat.com
Tue Aug 11 20:34:47 UTC 2009


On Tue, 2009-08-11 at 12:05 -0700, Toshio Kuratomi wrote:
> On 08/10/2009 12:36 PM, Adam Jackson wrote:
> > pygtk2 implements a function called gtk.gdk.get_pixels_array(), which
> > returns the pixel contents of a GDK pixbuf as a numpy array.  Fine and
> > dandy, but this means it links against numpy (7 megs) which is itself
> > linked against atlas (12 megs).  Kind of a lot for a single function,
> > especially on a live image.
> > 
> > Especially for a function that's basically unused!  gnome-applet-music
> > uses it to implement a poor-man's Porter-Duff blend, and that's the only
> > caller currently packaged in Fedora, at least according to package deps.
> > I have a patch (attached) that fixes that [1], which means we could
> > compile our pygtk2 without numpy support and not break anything in
> > Fedora proper.
> > 
> Package deps are of minimal use in detecting this.  We have to detect
> when this function is used by an application which isn't part of package
> deps.  gnome-games and specto are two packages that make use of this
> function.

I did check this by installing all the packages in the distro with a
pygtk2 dep and then grepping their installed .py files.  Not sure how
gnome-games escaped...

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090811/9a3a2889/attachment.sig>


More information about the fedora-devel-list mailing list