Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Thu, 02 Jul 2020 08:29:34
Message-Id: 1593678557.c7299c1ecaed5e1103b9a07c08386d8457a2dd73.mgorny@gentoo
1 commit: c7299c1ecaed5e1103b9a07c08386d8457a2dd73
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 2 08:08:36 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 2 08:29:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7299c1e
7
8 distutils-r1.eclass: Fix pyproject.toml w/ single-r1
9
10 Closes: https://bugs.gentoo.org/730426
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 eclass/distutils-r1.eclass | 34 +++++++++++++++++-----------------
14 1 file changed, 17 insertions(+), 17 deletions(-)
15
16 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
17 index d29abf71fe3..092c0887d87 100644
18 --- a/eclass/distutils-r1.eclass
19 +++ b/eclass/distutils-r1.eclass
20 @@ -116,40 +116,40 @@ fi
21 if [[ ! ${_DISTUTILS_R1} ]]; then
22
23 _distutils_set_globals() {
24 - local rdep=${PYTHON_DEPS}
25 - local bdep=${rdep}
26 -
27 - if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
28 - local sdep=">=dev-python/setuptools-42.0.2[${PYTHON_USEDEP}]"
29 - else
30 - local sdep="$(python_gen_cond_dep '
31 - >=dev-python/setuptools-42.0.2[${PYTHON_MULTI_USEDEP}]
32 - ')"
33 - fi
34 + local rdep bdep
35 + local setuptools_dep='>=dev-python/setuptools-42.0.2[${PYTHON_USEDEP}]'
36
37 case ${DISTUTILS_USE_SETUPTOOLS} in
38 no|manual)
39 ;;
40 bdepend)
41 - bdep+=" ${sdep}"
42 + bdep+=" ${setuptools_dep}"
43 ;;
44 rdepend)
45 - bdep+=" ${sdep}"
46 - rdep+=" ${sdep}"
47 + bdep+=" ${setuptools_dep}"
48 + rdep+=" ${setuptools_dep}"
49 ;;
50 pyproject.toml)
51 - bdep+=" dev-python/pyproject2setuppy[${PYTHON_USEDEP}]"
52 + bdep+=' dev-python/pyproject2setuppy[${PYTHON_USEDEP}]'
53 ;;
54 *)
55 die "Invalid DISTUTILS_USE_SETUPTOOLS=${DISTUTILS_USE_SETUPTOOLS}"
56 ;;
57 esac
58
59 - RDEPEND=${rdep}
60 + if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
61 + bdep=${bdep//\$\{PYTHON_USEDEP\}/${PYTHON_USEDEP}}
62 + rdep=${rdep//\$\{PYTHON_USEDEP\}/${PYTHON_USEDEP}}
63 + else
64 + [[ -n ${bdep} ]] && bdep="$(python_gen_cond_dep "${bdep}")"
65 + [[ -n ${rdep} ]] && rdep="$(python_gen_cond_dep "${rdep}")"
66 + fi
67 +
68 + RDEPEND="${PYTHON_DEPS} ${rdep}"
69 if [[ ${EAPI} != [56] ]]; then
70 - BDEPEND=${bdep}
71 + BDEPEND="${PYTHON_DEPS} ${bdep}"
72 else
73 - DEPEND=${bdep}
74 + DEPEND="${PYTHON_DEPS} ${bdep}"
75 fi
76 REQUIRED_USE=${PYTHON_REQUIRED_USE}
77 }