FS#14861 - remove python-numpy dependency from pygtk

Attached to Project: Arch Linux
Opened by Greg (dolby) - Thursday, 28 May 2009, 18:36 GMT
Last edited by Jan de Groot (JGC) - Thursday, 22 October 2009, 07:17 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Recently python numeric was replaced by python numpy, its successor.
Pygtk has an optional dependency on the numeric python bindings and can operate very well without them.
The package maintainer(s) chose to build pygtk with with numeric support, which is meaningless for most (almost all) packages.
That adds 15mb of 4 dependencies, from python-numpy and blas, python-nose & lapack, its dependencies, that can IMO be avoided.
I request for the numpy dependency to be dropped from pygtk.
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 22 October 2009, 07:17 GMT
Reason for closing:  Implemented
Additional comments about closing:  numpy is a makedepend/optdepend now.
Comment by Jan de Groot (JGC) - Thursday, 28 May 2009, 18:48 GMT
I was against including numpy instead of numeric, but upstream has also switched to it. The python-nose dependency in python-numpy is a pure optdepend and should not be in the dependency chain.

As for removing numeric support: http://bugs.archlinux.org/task/14040
Comment by Greg (dolby) - Thursday, 28 May 2009, 18:56 GMT
What about packages in extra? I dont think any of those needs numeric in pygtk.
The problem isnt python-nose but lapack is 5mb and numpy which is 9mb.
Comment by Greg (dolby) - Wednesday, 21 October 2009, 07:11 GMT
  • Field changed: Percent Complete (100% → 0%)
There seems to be some discussion on the GNOME bugtracker about this. As its mentioned the numpy dependency on pygtk is used only by 1 function gtk.gdk.get_pixels_array() Fedora and Ubuntu have removed the dependency of numpy from pygtk and moved it to the applications that actually use the function.
https://bugzilla.gnome.org/show_bug.cgi?id=591745
The fedora mailing list link is especially interesting from this point onwards:https://www.redhat.com/archives/fedora-devel-list/2009-August/msg00677.html
Eventually, judging by the discussion on the GNOME bugzilla, it seems numpy will no longer be a pygtk dependency pretty soon.
Comment by Jan de Groot (JGC) - Wednesday, 21 October 2009, 07:14 GMT
I'll be happy to move numpy to optdepends. I don't know of any package in the repository using this, but we'll get bugreports about those after a while.

Moving this dependency to optdepends will remove any dependencies on blas, lapack and gcc-fortran.
Comment by Greg (dolby) - Wednesday, 21 October 2009, 12:36 GMT
AFAICT a viable suggestion is to build pygtk wih numpy but make numpy an optdepend and move it as a dependency on the applications needing it (for now).
I think the later is already happening with most applications, if not all, in Arch. AUR applications will have to adjust accordingly.
And will avoid getting bug reports like  FS#14040 .

Loading...