From 5d977ed349465ab3cdc376194d03424cbb2cb9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 15 Jul 2025 07:00:20 +0200 Subject: [PATCH] distutils-r1.eclass: Skip dep on ${PN} in EPYTEST_PLUGINS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When `EPYTEST_PLUGINS` contains `${PN}`, skip it when adding dependencies. This avoids a self-dependency, while making it possible to easily test pytest plugins themselves without having to append to `EPYTEST_PLUGINS` locally. Signed-off-by: Michał Górny Part-of: https://github.com/gentoo/gentoo/pull/43007 Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index b9366d1875556..7b025261eb2bd 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -565,6 +565,10 @@ distutils_enable_tests() { _set_epytest_plugins for plugin in "${EPYTEST_PLUGINS[@]}"; do case ${plugin} in + ${PN}) + # don't add a dependency on self + continue + ;; pkgcore) plugin=sys-apps/${plugin} ;;