summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass24
1 files changed, 11 insertions, 13 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index ac03659120d5..0345e3a12c02 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
}