commit: 9f0b1cb6ccd5808f7c32d7d3513ac6fab6e4205b
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 4 14:47:50 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 15 19:12:32 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f0b1cb6
distutils-r1.eclass: Use python_has_version in ...enable_sphinx
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
eclass/distutils-r1.eclass | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 9e7970fc2833..f0059d2756bf 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -424,11 +424,9 @@ distutils_enable_sphinx() {
python_check_deps() {
use doc || return 0
- local hasv_args=( -b )
- [[ ${EAPI} == 6 ]] && hasv_args=( --host-root )
local p
for p in dev-python/sphinx
"${_DISTUTILS_SPHINX_PLUGINS[@]}"; do
- has_version "${hasv_args[@]}"
"${p}[${PYTHON_USEDEP}]" ||
+ python_has_version "${p}[${PYTHON_USEDEP}]" ||
return 1
done
}