Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479970 - dev-python/matplotlib-1.3.0 version bump
Summary: dev-python/matplotlib-1.3.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: http://matplotlib.org/users/whats_new...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-06 19:40 UTC by Bertrand Jacquin
Modified: 2013-08-18 19:44 UTC (History)
2 users (show)

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


Attachments
numpydoc ebuild (numpydoc-0.4.ebuild,705 bytes, text/plain)
2013-08-17 13:20 UTC, Ian Delaney (RETIRED)
Details
dev-python/matplotlib/matplotlib-1.3.0.ebuild (matplotlib-1.3.0.ebuild,4.61 KB, text/plain)
2013-08-17 13:38 UTC, Bertrand Jacquin
Details
matplotlib-1.3.0 diff patch (matplotlib-1.3.0.patch,2.36 KB, patch)
2013-08-17 14:19 UTC, Ian Delaney (RETIRED)
Details | Diff
build.log (build.log,508.35 KB, text/x-log)
2013-08-17 15:37 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2013-08-06 19:40:57 UTC
Matplotlib 1.3.0 was released 1th August.

Reproducible: Always
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2013-08-17 13:20:02 UTC
Created attachment 356290 [details]
numpydoc ebuild

This package is a nightmare.  To kick it off, it needs a new package new dep numpydoc which appears to be only py2 compatible.  Same deal , 3 days
Comment 3 Bertrand Jacquin 2013-08-17 13:38:27 UTC
Created attachment 356294 [details]
dev-python/matplotlib/matplotlib-1.3.0.ebuild

Fast update :

Remove python-3.1 from PYTHON_COMPAT
Remove wxwidgets USE flag and always depend on it (Can't get it work without this), also always define "wx = True" in python_configure()
Internal copies of pyparsing are now gone, so removed rm from ebuild
matplotlib-1.2.0-setup.patch not needed anymore
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2013-08-17 14:19:24 UTC
Created attachment 356296 [details, diff]
matplotlib-1.3.0 diff patch

This being a demanding package it can do with some more perusing and tinkering.  The docs once again need a py2 doc build, the hard coded py2.7 is more or less a place holder for that code that from memory makes a local EPYTHON=ph2.7 and exports it making for the original line to work, or some such.

No time limit, go for it
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2013-08-17 14:31:08 UTC
hmm, Bertrand's wxwidgets USE flag distinct to mine but overlooked;
a) stipulating SLOT 0 for dateutil (ensures py2&3 compatibility), >=media-libs/libpng-1.2 cited in the INSTALL or some such doc, and 
b) numpydoc for the doc build which is HUGE.

Test suite appears happy which is nice
Comment 6 Mike Gilbert gentoo-dev 2013-08-17 15:29:20 UTC
(In reply to Bertrand Jacquin from comment #3)
> Remove wxwidgets USE flag and always depend on it (Can't get it work without
> this), also always define "wx = True" in python_configure()

Effectively, you are forcing python2 to be enabled unconditionally. This really doesn't make sense to me... how can it work without wxwidgets under python3, but fail under python2?
Comment 7 Bertrand Jacquin 2013-08-17 15:37:26 UTC
Created attachment 356302 [details]
build.log

(In reply to Ian Delaney from comment #5)
> hmm, Bertrand's wxwidgets USE flag distinct to mine but overlooked;

Using your ebuild (and so with no wxGTK nor wxpython installed) I'm getting the errors attached here

# MAKEOPTS=-j1 USE="cairo gtk -doc -examples -excel -fltk -gtk3 -latex -qt4 -tk -wxwidgets" emerge -va1t matplotlib
...
Traceback (most recent call last):
  File "setup.py", line 145, in <module>
    result = package.check()
  File "/var/tmp/portage/dev-python/matplotlib-1.3.0/work/matplotlib-1.3.0-python2_7/setupext.py", line 1576, in check
    wxversion.ensureMinimal('2.8')
  File "/usr/lib64/python2.7/site-packages/wxversion.py", line 209, in ensureMinimal
ImportError: No module named wx
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2013-08-17 16:11:32 UTC
(In reply to Bertrand Jacquin from comment #7)
> Created attachment 356302 [details]
> build.log
> 
> Using your ebuild (and so with no wxGTK nor wxpython installed) I'm getting
> the errors attached here

that's fine, that's why I said;
1) this package is a nightmare and
2) This is to kick it off
and left it open for more exhaustive testing.  It's the week-end but it will get more testing soon
Comment 9 Mike Gilbert gentoo-dev 2013-08-17 20:21:32 UTC
(In reply to Bertrand Jacquin from comment #7)

Ah this is interesting; I think pkg_postrm from dev-python/wxpython:2.8 leaves behind /usr/lib/python2.7/site-packages/wxversion.py[co]. If you remove those files, the error should go away.
Comment 10 Mike Gilbert gentoo-dev 2013-08-17 23:27:49 UTC
+*matplotlib-1.3.0 (17 Aug 2013)
+
+  17 Aug 2013; Mike Gilbert <floppym@gentoo.org> +matplotlib-1.3.0.ebuild:
+  Version bump, bug 479970. Thanks to Bertrand Jacquin and Ian Delaney.
Comment 11 Bertrand Jacquin 2013-08-18 19:44:33 UTC
(In reply to Mike Gilbert from comment #9)
> (In reply to Bertrand Jacquin from comment #7)
> 
> Ah this is interesting; I think pkg_postrm from dev-python/wxpython:2.8
> leaves behind /usr/lib/python2.7/site-packages/wxversion.py[co]. If you
> remove those files, the error should go away.

Right !