From: Michał Górny Date: Wed, 9 Dec 2015 17:47:54 +0000 (+0100) Subject: dev-python/pycups: Restrict *_all() phases to py2 for USE=doc X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b6022670668137f72552ba340f7ca19dec2a08f0;p=gentoo.git dev-python/pycups: Restrict *_all() phases to py2 for USE=doc --- diff --git a/dev-python/pycups/pycups-1.9.73.ebuild b/dev-python/pycups/pycups-1.9.73.ebuild index 188c6f747d24..ea8a00118095 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