Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727032 - dev-python/matplotlib-3.1.2 dev-python/matplotlib-3.2.1 block >dev-python/pillow-6.2.2
Summary: dev-python/matplotlib-3.1.2 dev-python/matplotlib-3.2.1 block >dev-python/pil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL: https://github.com/tacaswell/matplotl...
Whiteboard:
Keywords: PATCH
: 734764 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-06-03 23:45 UTC by Steven Trogdon
Modified: 2020-08-18 16:51 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Trogdon 2020-06-03 23:45:23 UTC
Both of the above matplotlib ebuilds need the patch

https://github.com/tacaswell/matplotlib/commit/3369e3bc24f98f430593a5d15d8e6d6deb14356e

to function properly with >pillow-6.2.2. As indicated in the patch PILLOW_VERSION
is now deprecated and the __version__ attribute is present for the subject matplotlib versions. 

Also, pillow is only pulled in with USE=doc. This would seem to be a bit obscure since pillow is needed for saving 'plots' in a variety of formats, i.e. jpeg, tiff, ..., etc. Often USE=doc refers to documentation relative to the subject ebuild. Perhaps a useflag somewhat more descriptive of why pillow is needed/used would be helpful.
Comment 1 François Bissey 2020-06-03 23:51:47 UTC
We should also note that discussion in https://github.com/matplotlib/matplotlib/issues/16083 explicitly says that pillow is now a hard dependency in matplotlib master branch, meaning it will be required in all cases for matplotlib 3.3 or whatever comes next after 3.2.x.
Comment 2 Steven Trogdon 2020-06-03 23:53:16 UTC
I should note that the indicated patch also works for pillow-6.2.2.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-08-18 15:46:13 UTC
FWICS 3.2.2 has this fixed already, so I'm just going to make the dep unconditional.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-08-18 15:46:18 UTC
*** Bug 734764 has been marked as a duplicate of this bug. ***
Comment 5 Larry the Git Cow gentoo-dev 2020-08-18 16:51:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3c4bda17ee8739bab98123190af5dbe528c3663

commit a3c4bda17ee8739bab98123190af5dbe528c3663
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-08-18 15:41:49 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-08-18 16:51:45 +0000

    dev-python/matplotlib: Depend on pillow unconditionally
    
    Pillow is required to export plots into a number of formats, so making
    the dependency optional is suprising.
    
    Closes: https://bugs.gentoo.org/727032
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../matplotlib/{matplotlib-3.2.2.ebuild => matplotlib-3.2.2-r1.ebuild}  | 2 +-
 dev-python/matplotlib/matplotlib-3.3.0.ebuild                           | 2 +-
 .../matplotlib/{matplotlib-3.3.1.ebuild => matplotlib-3.3.1-r1.ebuild}  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)