diff --git a/dev-python/pycups/pycups-1.9.73.ebuild b/dev-python/pycups/pycups-1.9.73.ebuild index 188c6f747d24b..ea8a00118095a 100644 --- a/dev-python/pycups/pycups-1.9.73.ebuild +++ b/dev-python/pycups/pycups-1.9.73.ebuild @@ -31,6 +31,10 @@ DEPEND="${RDEPEND} REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )" +pkg_setup() { + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) +} + python_compile_all() { if use doc; then # we can't use Makefile since it relies on hardcoded paths