From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-dev] [PATCH 4/4] distutils-r1.eclass: Remove obsolete EAPI condition for *.pth files
Date: Sun, 2 Oct 2022 18:18:40 +0200 [thread overview]
Message-ID: <20221002161840.5552-4-mgorny@gentoo.org> (raw)
In-Reply-To: <20221002161840.5552-1-mgorny@gentoo.org>
Remove the EAPI condition for *.pth files, as they are banned in all
EAPIs currently supported by the eclass.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/distutils-r1.eclass | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index d667b31191e2..5a622689b979 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -2023,21 +2023,19 @@ _distutils-r1_check_namespace_pth() {
done < <(find "${ED%/}" -name '*-nspkg.pth' -print0)
if [[ ${pth[@]} ]]; then
- ewarn "The following *-nspkg.pth files were found installed:"
- ewarn
+ eerror "The following *-nspkg.pth files were found installed:"
+ eerror
for f in "${pth[@]}"; do
- ewarn " ${f#${ED%/}}"
+ eerror " ${f#${ED%/}}"
done
- ewarn
- ewarn "The presence of those files may break namespaces in Python 3.5+. Please"
- ewarn "read our documentation on reliable handling of namespaces and update"
- 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
+ eerror
+ eerror "The presence of those files may break namespaces in Python 3.5+. Please"
+ eerror "read our documentation on reliable handling of namespaces and update"
+ eerror "the ebuild accordingly:"
+ eerror
+ eerror " https://projects.gentoo.org/python/guide/concept.html#namespace-packages"
+
+ die "Installing *-nspkg.pth files is banned"
fi
}
--
2.37.3
prev parent reply other threads:[~2022-10-02 16:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-02 16:18 [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Remove obsolete DUS=pyproject.toml support Michał Górny
2022-10-02 16:18 ` [gentoo-dev] [PATCH 2/4] distutils-r1.eclass: fix typo in comment Michał Górny
2022-10-02 16:18 ` [gentoo-dev] [PATCH 3/4] distutils-r1.eclass: Bump min dep versions Michał Górny
2022-10-02 16:18 ` Michał Górny [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221002161840.5552-4-mgorny@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox