dev-python/suds: Restrict *_all() to python2 when USE=doc
authorMichał Górny <mgorny@gentoo.org>
Wed, 9 Dec 2015 18:40:32 +0000 (19:40 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 9 Dec 2015 19:06:47 +0000 (20:06 +0100)
dev-python/suds/suds-0.6-r1.ebuild

index e9c939752ec144fe90e146ae1e5eeb9a5d7598e6..b99f3b046b914a6322095c25755f8b9f38a5467a 100644 (file)
@@ -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