From 68f70b3d2370f67e1c16cc72036aec620dc3dc14 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 30 Jun 2025 07:09:47 +0000 Subject: [PATCH] eclass/distutils-r1: Sync with Gentoo It's from Gentoo commit 3229e9f67a15f5a4e9031cb7813be36556537b58. --- .../portage-stable/eclass/distutils-r1.eclass | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sdk_container/src/third_party/portage-stable/eclass/distutils-r1.eclass b/sdk_container/src/third_party/portage-stable/eclass/distutils-r1.eclass index ba97a95f57..b9366d1875 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/distutils-r1.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/distutils-r1.eclass @@ -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