* python3_6: running distutils-r1_run_phase python_compile_all make -j1 -C documentation html make: Entering directory '/var/tmp/portage/dev-python/six-1.11.0/work/six-1.11.0/documentation' sphinx-build -b html -d _build/doctrees . _build/html Traceback (most recent call last): File "/usr/lib/python-exec/python3.6/sphinx-build", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3138, in <module> @_call_aside File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3122, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3151, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 664, in _build_master ws.require(__requires__) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 981, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 867, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'sphinxcontrib-websupport' distribution was not found and is required by Sphinx make: *** [Makefile:40: html] Error 1 make: Leaving directory '/var/tmp/portage/dev-python/six-1.11.0/work/six-1.11.0/documentation' * ERROR: dev-python/six-1.11.0::gentoo failed (compile phase): * emake failed
Many dev-python packages fail with USE=doc in the same way. sphinxcontrib-websupport depends on whoosh, which (with USE=doc) also needs sphinxcontrib-websupport - circular dependence. With proper DEPENDs, portage should warn the user and suggest to emerge whoosh with USE=-doc first. This solves the immediate problem. But DEPENDs of many packages with USE=doc are wrong - they don't contain sphinxcontrib-websupport.
*** This bug has been marked as a duplicate of bug 624672 ***