• [gentoo-dev] [PATCH 3/9] distutils-r1.eclass: Stray file check moved to

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Sat Jan 6 14:50:01 2024
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    ---
    eclass/distutils-r1.eclass | 33 ---------------------------------
    1 file changed, 33 deletions(-)

    diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
    index c0d1992ccce0..8dfee7cb9232 100644
    --- a/eclass/distutils-r1.eclass
    +++ b/eclass/distutils-r1.eclass
    @@ -2091,39 +2091,6 @@ _distutils-r1_post_python_install() {
    if [[ -d ${sitedir} ]]; then
    _distutils-r1_strip_namespace_packages "${sitedir}"

    - local forbidden_package_names=(
    - examples test tests
    - .pytest_cache .hypothesis _trial_temp
    - )
    - local strays=()
    - local p
    - mapfile -d $'\0' -t strays < <(
    - find "${sitedir}" -maxdepth 1 -type f '!' '(' \
    - -name '*.egg-info' -o \
    - -name '*.pth' -o \
    - -name '*.py' -o \
    - -name '*.pyi' -o \
    - -name "*$(get_modname)" \
    - ')' -print0
    - )
    - for p in "${forbidden_package_names[@]}"; do
    - [[ -d ${sitedir}/${p} ]] && strays+=( "${sitedir}/${p}" )
    - done
    -
    - if [[ -n ${strays[@]} ]]; then
    - eerror "The following une