• [gentoo-dev] [PATCH 4/4] distutils-r1.eclass: Remove obsolete EAPI cond

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Sun Oct 2 18:20:01 2022
    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 <[email protected]>
    ---
    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 "${EAP