As stated in https://github.com/matplotlib/matplotlib/blob/v2.1.0/doc-requirements.txt building the documentation for matplotlib requires >=dev-python/sphinx-gallery-0.1.12. Without this the build will fail: Exception occurred: File "conf.py", line 19, in <module> from sphinx_gallery.sorting import ExplicitOrder ModuleNotFoundError: No module named 'sphinx_gallery' The full traceback has been saved in …, if you want to report the issue to the developers. I found this while writing bug 641624 comment 3.
Same here
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55815c44c8b37c35947d760c32c1a9c347e9be6d commit 55815c44c8b37c35947d760c32c1a9c347e9be6d Author: Andrey Grozin <grozin@gentoo.org> AuthorDate: 2018-01-24 07:30:08 +0000 Commit: Andrey Grozin <grozin@gentoo.org> CommitDate: 2018-01-24 07:30:08 +0000 dev-python/matplotlib: depend on doc? ( dev-python/sphinx-gallery ) Bug: https://bugs.gentoo.org/643840 Package-Manager: Portage-2.3.19, Repoman-2.3.6 dev-python/matplotlib/matplotlib-2.1.0-r2.ebuild | 253 ++++++++++++++++++++++ dev-python/matplotlib/matplotlib-2.1.2-r1.ebuild | 255 +++++++++++++++++++++++ 2 files changed, 508 insertions(+)}
commit 8ece2e128c8fe8040a230cb87dd7efb5292fee65 (HEAD -> master, origin/master, origin/HEAD) Author: Andrey Grozin <grozin@gentoo.org> Date: Wed Jan 24 14:35:16 2018 +0700 profiles/base/package.use.stable.mask: mask dev-python/matplotlib doc