mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
distutils-r1.eclass: Add dependencies for EPYTEST_PLUGINS
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -561,6 +561,20 @@ distutils_enable_tests() {
|
||||
test_pkgs+=' dev-python/pytest-xdist[${PYTHON_USEDEP}]'
|
||||
fi
|
||||
|
||||
local plugin
|
||||
_set_epytest_plugins
|
||||
for plugin in "${EPYTEST_PLUGINS[@]}"; do
|
||||
case ${plugin} in
|
||||
pkgcore)
|
||||
plugin=sys-apps/${plugin}
|
||||
;;
|
||||
*)
|
||||
plugin=dev-python/${plugin}
|
||||
;;
|
||||
esac
|
||||
test_pkgs+=" ${plugin}[\${PYTHON_USEDEP}]"
|
||||
done
|
||||
|
||||
if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
|
||||
test_deps+=" ${test_pkgs//'${PYTHON_USEDEP}'/${PYTHON_USEDEP}}"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user