diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-01-31 19:59:27 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-01 19:33:19 +0100 |
commit | 25d4b5e701068b6849b11ab25446235b49ffa10b (patch) | |
tree | a13658ee6832a27c092a78fb929a2b34a1b1d507 /eclass/distutils-r1.eclass | |
parent | distutils-r1.eclass: Fix subphase return value passthrough (diff) | |
download | gentoo-25d4b5e701068b6849b11ab25446235b49ffa10b.tar.gz gentoo-25d4b5e701068b6849b11ab25446235b49ffa10b.tar.bz2 gentoo-25d4b5e701068b6849b11ab25446235b49ffa10b.zip |
distutils-r1.eclass: Move DISTUTILS_OPTIONAL check into set_globals
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 8942a6149c93..4a9fdb4018b4 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -213,15 +213,17 @@ _distutils_set_globals() { [[ -n ${rdep} ]] && rdep="$(python_gen_cond_dep "${rdep}")" fi - RDEPEND="${PYTHON_DEPS} ${rdep}" - if [[ ${EAPI} != 6 ]]; then - BDEPEND="${PYTHON_DEPS} ${bdep}" - else - DEPEND="${PYTHON_DEPS} ${bdep}" + if [[ ! ${DISTUTILS_OPTIONAL} ]]; then + RDEPEND="${PYTHON_DEPS} ${rdep}" + if [[ ${EAPI} != 6 ]]; then + BDEPEND="${PYTHON_DEPS} ${bdep}" + else + DEPEND="${PYTHON_DEPS} ${bdep}" + fi + REQUIRED_USE=${PYTHON_REQUIRED_USE} fi - REQUIRED_USE=${PYTHON_REQUIRED_USE} } -[[ ! ${DISTUTILS_OPTIONAL} ]] && _distutils_set_globals +_distutils_set_globals unset -f _distutils_set_globals # @ECLASS-VARIABLE: PATCHES |