mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-10 06:57:08 -08:00
Typically, the distutils-r1.eclass pulls in dev-lang/python unconditionally unless we set DISTUTILS_OPTIONAL variable to non-null value. Let's do that, since the package already has a python USE flag for gating the python dependency. Specifying DISTUTILS_OPTIONAL requires manually invoking distutils eclass' phase functions. So let's make sure that they are invoked only if USE=python is enabled. Signed-off-by: Krzesimir Nowak <knowak@microsoft.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/87 Merges: https://codeberg.org/gentoo/gentoo/pulls/87 Signed-off-by: Sam James <sam@gentoo.org>