dev-python/pycups: Restrict *_all() phases to py2 for USE=doc

This commit is contained in:
Michał Górny
2015-12-09 18:47:54 +01:00
parent 53d1880d2d
commit b602267066

View File

@@ -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