Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185692 - dev-python/pygtk : dev-python/numeric dependency
Summary: dev-python/pygtk : dev-python/numeric dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks: 181653 240562
  Show dependency tree
 
Reported: 2007-07-17 19:23 UTC by Rafał Mużyło
Modified: 2009-07-26 23:24 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch that seems to work. (pygtk_r2808-numpy.patch,2.47 KB, patch)
2007-07-17 19:25 UTC, Rafał Mużyło
Details | Diff
Missing macros (pygtk-acinclude.m4,2.34 KB, text/plain)
2007-07-17 19:27 UTC, Rafał Mużyło
Details
pygtk-2.10.6-numpy.patch (pygtk-2.10.6-numpy.patch,5.89 KB, patch)
2007-07-19 00:07 UTC, Ali Polatel (RETIRED)
Details | Diff
pygtk-2.10.6.ebuild.diff (pygtk-2.10.6.ebuild.diff,1.37 KB, patch)
2007-07-19 00:09 UTC, Ali Polatel (RETIRED)
Details | Diff
pygtk-2.13.0-numpy.patch (pygtk-2.13.0-numpy.patch,6.56 KB, text/plain)
2009-01-19 22:51 UTC, Sébastien Fabbro (RETIRED)
Details
patch to make it use numpy (use-numpy.patch,3.63 KB, patch)
2009-04-10 21:43 UTC, Paul Mulders
Details | Diff
fixes a warning introduced by other patch (fix-warn.patch,360 bytes, patch)
2009-04-10 21:43 UTC, Paul Mulders
Details | Diff
updated ebuild (pygtk-2.14.1.ebuild,2.17 KB, text/plain)
2009-04-10 21:44 UTC, Paul Mulders
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2007-07-17 19:23:17 UTC
Following discussion in bug #181653 I tried the patch from http://www.scipy.org/Porting_to_NumPy to see how it works.
Well, it needed some work but it seems to work for me now. However, I must complain about state of autotools in pygtk. It does not supply three of the macros it uses in configure.in so unless you provide those macros, eautoreconf fails. However those macros were not that hard to find (that's an upstream bug for me).
What's more this patch needs numpy at least 1.0, cause otherwise check for includes fails.

Reproducible: Always

Steps to Reproduce:
Comment 1 Rafał Mużyło 2007-07-17 19:25:54 UTC
Created attachment 125197 [details, diff]
Patch that seems to work.
Comment 2 Rafał Mużyło 2007-07-17 19:27:42 UTC
Created attachment 125199 [details]
Missing macros
Comment 3 Santiago M. Mola (RETIRED) gentoo-dev 2007-07-17 21:17:23 UTC
Upstream bug:. http://bugzilla.gnome.org/show_bug.cgi?id=397544
Comment 4 Luis Medinas (RETIRED) gentoo-dev 2007-07-17 21:29:08 UTC
If the python team wants to unmask python 2.5 fast we can work on pygtk to support numpy instead until the upstream fix the problem.
Comment 5 Luis Medinas (RETIRED) gentoo-dev 2007-07-17 21:31:25 UTC
of course temporary patching numeric to work on python 2.5 could be an option too.
Comment 6 Ali Polatel (RETIRED) gentoo-dev 2007-07-17 22:23:44 UTC
(In reply to comment #4)
> If the python team wants to unmask python 2.5 fast we can work on pygtk to
> support numpy instead until the upstream fix the problem.
> 

Upstream has already fixed the problem in svn and there are quite a few packages other than this one to fix before we can punt numeric. So I'll contact the pygtk team and ask when they're planning to release a new version which uses numpy instead of numeric. We are in no hurry to unmask 2.5 until all problems are fixed.
Comment 7 Ali Polatel (RETIRED) gentoo-dev 2007-07-19 00:04:40 UTC
Ok to correct myself, turns out this hasn't been fixed in svn and I'm not sure if it'll be fixed in the near future. I don't want to rush things but we should slowly consider porting pygtk to numpy. I'm attaching a patch which also include missing macros and an ebuild that builds fine.
Gnome people I'll appreciate if you can test it. There are more than 130 packages in the tree depending on pygtk so we don't want to mess with it before we're absolutely sure everything works fine :-)
Comment 8 Ali Polatel (RETIRED) gentoo-dev 2007-07-19 00:07:52 UTC
Created attachment 125297 [details, diff]
pygtk-2.10.6-numpy.patch

As I said this one includes missing macros as well. So I made the two previous attachments obsolete.
Comment 9 Ali Polatel (RETIRED) gentoo-dev 2007-07-19 00:09:09 UTC
Created attachment 125298 [details, diff]
pygtk-2.10.6.ebuild.diff

Changes to ebuild required to make it work.
Comment 10 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-07-26 16:22:34 UTC
Just to be clear: there's nothing broken with 2.4, right?  As said, pygtk is a fundamental package for tons of apps, and I'd prefer not to break it.  Maybe we can get this working in the overlay, and then later patch into portage?
Comment 11 Ali Polatel (RETIRED) gentoo-dev 2007-07-26 22:18:20 UTC
(In reply to comment #10)
> Just to be clear: there's nothing broken with 2.4, right?  As said, pygtk is a
> fundamental package for tons of apps, and I'd prefer not to break it.  Maybe we
> can get this working in the overlay, and then later patch into portage?
> 

nothing is broken with 2.4 and nor is anything broken with 2.5 on 32 bit. I
didn't mean to rush this and I totally agree with your idea of testing this in
an overlay before we push it into the tree.
Comment 12 Luis Medinas (RETIRED) gentoo-dev 2007-07-26 23:57:36 UTC
the current numeric on the tree works on amd64 with py2.5 so we don't have to worry now. The python team can unmask py2.5 when they want it won't affect us
Comment 13 juantxorena@gmail.com 2009-01-17 09:39:13 UTC
Upstream doesn't care about this, they haven't done anything about numpy in 2 years (check their cvs). The patch in this bug is being used, with slight changes, at least in debian and red hat. Maybe we should apply this patch too and wait unitl upstream wakes up.
Comment 14 Sébastien Fabbro (RETIRED) gentoo-dev 2009-01-19 22:51:24 UTC
Created attachment 179051 [details]
pygtk-2.13.0-numpy.patch

Here is an updated patch.
@gnome: could you test this, may be in the overlay? The ebuild needs the same changes as the one above.
I tried matplotlib and it worked fine, but I think it does not use the numeric stuff from pygtk.
Thanks.
Comment 15 Paul Mulders 2009-04-10 21:42:36 UTC
upstream finally committed this...

following patches apply cleanly to 2.14.1, changed ebuild attached too (eautoreconf needed)
Comment 16 Paul Mulders 2009-04-10 21:43:30 UTC
Created attachment 187917 [details, diff]
patch to make it use numpy
Comment 17 Paul Mulders 2009-04-10 21:43:47 UTC
Created attachment 187918 [details, diff]
fixes a warning introduced by other patch
Comment 18 Paul Mulders 2009-04-10 21:44:04 UTC
Created attachment 187920 [details]
updated ebuild
Comment 19 Dustin Polke 2009-07-16 11:49:43 UTC
I think switching to numpy with above patches should be reconsidered as numeric fails to build with python-2.6 which is scheduled to go stable soon.
Comment 20 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-26 23:24:40 UTC
in 2.14.1-r1. Thanks for reporting and producing a patch.