Signed-off-by: Michał Górny <mgo...@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 unexpected files/directories were found top-level" - eerror "in the site-packages directory:" - eerror - for p in "${strays[@]}"; do - eerror " ${p#${ED}}" - done - eerror - eerror "This is most likely a bug in the build system. More information" - eerror "can be found in the Python Guide:" - eerror "https://projects.gentoo.org/python/guide/qawarn.html#stray-top-level-files-in-site-packages" - die "Failing install because of stray top-level files in site-packages" - fi - if [[ ! ${DISTUTILS_EXT} && ! ${_DISTUTILS_EXT_WARNED} ]]; then if [[ $(find "${sitedir}" -name "*$(get_modname)" | head -n 1) ]] then -- 2.43.0