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