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.
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.
I should note that the indicated patch also works for pillow-6.2.2.
FWICS 3.2.2 has this fixed already, so I'm just going to make the dep unconditional.
*** Bug 734764 has been marked as a duplicate of this bug. ***
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(-)