[PATCH] python-utils-r1.eclass: epytest, fix jobserver USE-dep check
Michał Górny <[email protected]> Sun, 14 Jun 2026 04:58:30 +0200
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <[email protected]> |
Fix the dev-python/pytest-jobserver USE dependency check not to rely on PYTHON_USEDEP being declared (which was too restrictive anyway). Instead, check for the implementation used via EPYTHON, using similar logic to python_check_deps(). Signed-off-by: Michał Górny <[email protected]> --- eclass/python-utils-r1.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 468373dac37d4..5313e41a420f7 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -1606,7 +1606,8 @@ epytest() { ) if [[ ${MAKEFLAGS} == *--jobserver-auth=* ]]; then - if has_version "dev-python/pytest-jobserver[${PYTHON_USEDEP}]" + local usedep="python_targets_${EPYTHON/./_}(-)" + if has_version "dev-python/pytest-jobserver[${usedep}]" then args+=( -p jobserver ) elif [[ ! ${_EPYTEST_JOBSERVER_WARNED} ]]; then