distutils-r1.eclass: Use python_has_version in ...enable_sphinx

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-02-04 15:47:50 +01:00
parent 9e323d64b3
commit 9f0b1cb6cc

View File

@@ -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
}