From: Michał Górny Date: Wed, 9 Dec 2015 18:40:32 +0000 (+0100) Subject: dev-python/suds: Restrict *_all() to python2 when USE=doc X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=180e66b602acd224b8d803c7e405b071a6c6782b;p=gentoo.git dev-python/suds: Restrict *_all() to python2 when USE=doc --- diff --git a/dev-python/suds/suds-0.6-r1.ebuild b/dev-python/suds/suds-0.6-r1.ebuild index e9c939752ec1..b99f3b046b91 100644 --- a/dev-python/suds/suds-0.6-r1.ebuild +++ b/dev-python/suds/suds-0.6-r1.ebuild @@ -27,6 +27,10 @@ RDEPEND="" DOCS=( README.rst notes/{argument_parsing.rst,readme.txt,traversing_client_data.rst} ) +pkg_setup() { + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) +} + python_compile_all() { # to say that it's both, because it kinda is... ! use doc || epydoc -n "Suds - ${DESCRIPTION}" -o doc suds || die