Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 13/30] distutils-r1.eclass: Use python_has_version in ...enable_sphinx
Date: Sun, 06 Feb 2022 12:53:13
Message-Id: 20220206124841.1299133-14-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/30] One batch of Python eclass updates to rule them all by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/distutils-r1.eclass | 2 +-
4 1 file changed, 1 insertion(+), 1 deletion(-)
5
6 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
7 index c0b04cf7d997..295263b62420 100644
8 --- a/eclass/distutils-r1.eclass
9 +++ b/eclass/distutils-r1.eclass
10 @@ -431,7 +431,7 @@ distutils_enable_sphinx() {
11 [[ ${EAPI} == 6 ]] && hasv_args=( --host-root )
12 local p
13 for p in dev-python/sphinx "${_DISTUTILS_SPHINX_PLUGINS[@]}"; do
14 - has_version "${hasv_args[@]}" "${p}[${PYTHON_USEDEP}]" ||
15 + python_has_version "${hasv_args[@]}" "${p}[${PYTHON_USEDEP}]" ||
16 return 1
17 done
18 }
19 --
20 2.35.1