From 73842715ee7c1f5b193f2a2d78c1fc3caa69b0dd Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 31 May 2022 10:47:30 +0200 Subject: distutils-r1.eclass: Make *-nspkg.pth warning fatal for EAPI 9+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that we've essentially removed non-implicit namespace packages from Gentoo and setuptools upstream has deprecated their old solution, it's time to make this check fatal. Unfortunately, I did not think of it when adding PEP517 mode, so let's do that in EAPI 9. 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 b0318410b100..1d7bea6d8cab 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1865,6 +1865,10 @@ _distutils-r1_check_namespace_pth() { ewarn "the ebuild accordingly:" ewarn ewarn " https://projects.gentoo.org/python/guide/concept.html#namespace-packages" + + if ! has "${EAPI}" 6 7 8; then + die "*-nspkg.pth files are banned in EAPI ${EAPI}" + fi fi } -- cgit v1.2.3-65-gdbad