From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6721A15803E for ; Sat, 6 Jan 2024 13:45:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A47C42BC0BE; Sat, 6 Jan 2024 13:44:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5F4952BC0BB for ; Sat, 6 Jan 2024 13:44:56 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 3/9] distutils-r1.eclass: Stray file check moved to install-qa-check.d Date: Sat, 6 Jan 2024 14:44:40 +0100 Message-ID: <20240106134446.26153-3-mgorny@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240106134446.26153-1-mgorny@gentoo.org> References: <20240106134446.26153-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 8b32bdcc-32fb-439e-80e5-3bbfb3028cba X-Archives-Hash: 1809b5848eda3bd4782f784b29356af9 Signed-off-by: Michał Górny --- 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