summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-02-07 12:44:00 +0100
committerMichał Górny <mgorny@gentoo.org>2020-02-09 17:10:24 +0100
commit1cf25d8d399d0948fc9aace316b512dcfadeeac7 (patch)
tree07ed94bc8467a35fb01c043be09767c4c17bdac7 /eclass
parentnet-libs/rest: drop to ~hppa (diff)
downloadgentoo-1cf25d8d399d0948fc9aace316b512dcfadeeac7.tar.gz
gentoo-1cf25d8d399d0948fc9aace316b512dcfadeeac7.tar.bz2
gentoo-1cf25d8d399d0948fc9aace316b512dcfadeeac7.zip
distutils-r1.eclass: Switch setuptools dep to PYTHON_MULTI_USEDEP
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass16
1 files changed, 12 insertions, 4 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index a840769cdec..3d6866b8db5 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: distutils-r1.eclass
@@ -117,15 +117,23 @@ _distutils_set_globals() {
local rdep=${PYTHON_DEPS}
local bdep=${rdep}
+ if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
+ local sdep="dev-python/setuptools[${PYTHON_USEDEP}]"
+ else
+ local sdep="$(python_gen_cond_dep '
+ dev-python/setuptools[${PYTHON_MULTI_USEDEP}]
+ ')"
+ fi
+
case ${DISTUTILS_USE_SETUPTOOLS} in
no|manual)
;;
bdepend)
- bdep+=" dev-python/setuptools[${PYTHON_USEDEP}]"
+ bdep+=" ${sdep}"
;;
rdepend)
- bdep+=" dev-python/setuptools[${PYTHON_USEDEP}]"
- rdep+=" dev-python/setuptools[${PYTHON_USEDEP}]"
+ bdep+=" ${sdep}"
+ rdep+=" ${sdep}"
;;
*)
die "Invalid DISTUTILS_USE_SETUPTOOLS=${DISTUTILS_USE_SETUPTOOLS}"