* Package: dev-python/testtools-2.2.0 * Repository: gentoo * Maintainer: bazaar@gentoo.org python@gentoo.org,openstack@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_5 userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox * python2_7: running distutils-r1_run_phase distutils-r1_python_compile /usr/bin/python2.7 setup.py build ERROR:root:Error parsing Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/pbr/core.py", line 111, in pbr attrs = util.cfg_to_args(path, dist.script_args) File "/usr/lib64/python2.7/site-packages/pbr/util.py", line 264, in cfg_to_args wrap_commands(kwargs) File "/usr/lib64/python2.7/site-packages/pbr/util.py", line 566, in wrap_commands cmdclass = ep.resolve() File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2293, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib64/python2.7/site-packages/sphinx/setup_command.py", line 23, in <module> from sphinx.application import Sphinx File "/usr/lib64/python2.7/site-packages/sphinx/application.py", line 25, in <module> from docutils import nodes ImportError: No module named docutils error in setup command: Error parsing /var/tmp/portage/dev-python/testtools-2.2.0/work/testtools-2.2.0/setup.cfg: ImportError: No module named docutils
Only =dev-python/testtools-0.9.36 builds fine here, all other versions show the same error.
It's a bug in dev-python/sphinx package: missing docutils depend. It looks like it was added a few releases ago.