mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
distutils-r1.eclass: Use python_has_version in ...enable_sphinx
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user