distutils-r1.eclass: Depend on setuptools by default
authorMichał Górny <mgorny@gentoo.org>
Fri, 29 Nov 2019 12:48:44 +0000 (13:48 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 7 Dec 2019 14:36:34 +0000 (15:36 +0100)
commitb1c6961beda1e729f3c6d301d6e0cce4de0493bf
treea30e04030ce9cf82fc94b4752de65382d547af10
parent31f43f7851c01ca85f6a8016342f91c942fdb7d5
distutils-r1.eclass: Depend on setuptools by default

Add a new DISTUTILS_USE_SETUPTOOLS top variable, and make it default
to BDEPEND-ing on dev-python/setuptools (which should be correct
for the majority of packages).  Packages that either need RDEPEND
or no dependency at all can override it.

Also add a check for correct value in esetup.py.  This should make it
easy for developers to adjust the new variable in their packages.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/distutils-r1.eclass