From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 27 15:49:29 2021 Received: (at submit) by debbugs.gnu.org; 27 Dec 2021 20:49:29 +0000 Received: from localhost ([127.0.0.1]:44414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1wvx-0004cl-DC for submit@debbugs.gnu.org; Mon, 27 Dec 2021 15:49:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:33022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1wvt-0004cY-7q for submit@debbugs.gnu.org; Mon, 27 Dec 2021 15:49:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1wvt-0005XO-0g for bug-guix@gnu.org; Mon, 27 Dec 2021 15:49:25 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:58083) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1wvq-0006xX-VT for bug-guix@gnu.org; Mon, 27 Dec 2021 15:49:24 -0500 Received: from hermia.goebel-consult.de ([87.176.128.206]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MXoxG-1mwVPI3J9Q-00YEVm; Mon, 27 Dec 2021 21:49:20 +0100 Received: from [192.168.110.2] (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 4BD0C5F53C; Mon, 27 Dec 2021 21:49:29 +0100 (CET) Message-ID: <1df628db-1c7b-dd86-0b77-cd767fea593d@crazy-compilers.com> Date: Mon, 27 Dec 2021 21:49:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Content-Language: en-US From: Hartmut Goebel To: bug-guix Organization: crazy-compilers.com Subject: sanity-check fails with namespace packages Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:6jX+DVG0MUIlnhbpqOVMrKM/i3jaa7C0CYXjHECgTWgh4JLpbmD IUH0ww/ejTN71eakIal4kk9AFTTzMNlOLwJxo89dDK2i00YtNXrErQxK84FrsgfFGBjKcU7 8X0imzf5Ro8xJWdz6R+VWtUvRBR586gLwkkmID3wTo0evaWjdr4PUzqmSnRPYEFP3Amzzcv b8p3g4HgmEyMpk+xb2oCA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:yu9mRDUFSSw=:qAuEkrXggFA2seAER5S3OG HfPb6+2lOMVlNkNCtc4cKDmIIr+BuxP8190O/9f3XleZ2Xge+4Q+c+jh+4NpaB6PhX3msFNtV sBb+UkxeWzemeOR2+FZMPgJOY+JL6OWsuH+ga5YrOm1MWXC//t8eff8N2ubRgEEpHkJUCyr4Z 4wX/msDhraOk/iQNC70llXnAhWvVcPyUTLlFHtkL6RZ/67gQofG9zT9EO3eKEabqePjChrdD8 eatYGhOv3UjCotoWC+8/dSjSzqux+Rk/0iQXVYVqv+WpOCbZ7pPz3qAvsAGO5DuU0M+Ljq71D 2KHxn4b1MvgWPihLJkTqjNsrFo+MJI6qbYziz/+d1NRDtOFZem69PJMpgvSvdsrGiPzQRMcqB soNeWFRcjX7y4xZ9caZrUHg2UnZjIOboiXJAqrG8TRHcJRk2hOXyw/rv1qKbmQ6VFeZVnEO4u mmSNVUpnt4qN1DEmpOFujeYEwW9TjviBuYOqXfU6fM11Z8ha8yZoS1bat46MpJH+saUhXQ/4j Sg1oZtmhARI7DezhWkxvzlVEWQlcpLxgrID6ctkvCJk28uSDfyQfKBBRGaw6EzBiny14WgsRS u9tUIsQgnf+5Zjr44x/UXs6GncRNw9vgA3ofH1DQLXYKLVs6R1vv8NVEqm2wLjrN+ADrzDEWq 3dukQAjgADuM1g1LAqyFwkY0fCxeyJQI5Z1vQ70EqebJm5SMBjUOMmDaurVQLUznh8d1TKJE+ 3U6/fn/xcbJHMBGF Received-SPF: none client-ip=217.72.192.74; envelope-from=h.goebel@crazy-compilers.com; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: Lars-Dominik Braun X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, I just investigated some failing python packages and found that "python2-zppe-*" packages fail. (Most due to a dependency failing , though. Actually failing are python2-zope-testing and python2-zope-event). These fail due to sanity-check not being able to import "zope" - which is a namespace package. Both use the "src directory layout" (source is contained in a sub-directory "src"). This could be solved by fetching a list og namespace-packages and checking whether a fails import is a namespace-package. Maybe there are other solution. try:      nspkgs = set(dist.get_metadata_lines('namespace_packages.txt')) except:     nspkgs = set() Anyhow, since Python2 is EOL since long, I'm not sure whether it's worth the effort. WDYT? -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 28 09:03:52 2021 Received: (at 52834) by debbugs.gnu.org; 28 Dec 2021 14:03:52 +0000 Received: from localhost ([127.0.0.1]:45381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2D4y-0006aF-2d for submit@debbugs.gnu.org; Tue, 28 Dec 2021 09:03:52 -0500 Received: from mout-p-102.mailbox.org ([80.241.56.152]:48414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2D4v-0006a1-7I for 52834@debbugs.gnu.org; Tue, 28 Dec 2021 09:03:50 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4JNbqL6VtgzQkBl; Tue, 28 Dec 2021 15:03:42 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1640700221; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NXhket9JegO1rubQlxNHEU6gobA2H9vXkPlYAqZ1Ke0=; b=kPOnzwd9xPjMxssyn493e8y8zYfGF2yzE6NCCdntyt72sYAWF7ZsjfxfmhpSaL5pt/roc3 8O45kDtTXspBw1kcVNhllE06mS8IHK0jDGBA/A35j3QrQLVTxWH3xbd2ZtevzQuBPooG2n jcGzTLMZdkkiKOfpr3YaULl0UG/yp7wjQ3fiGnH15Qb1Hj+HQ1iN/KRa1PO6JrOoCJRne8 aDttvxCFUmd93XYOlayCdBVK45kotGidNU0KrnfU8B3KIuJMbiMMG66HSL1SRHY5Fu8w9y aYNU81pZCKNK9juqIDpibm8EinX1V9PeinluJi28FgKTuVkJxOziAVAcAcUDfQ== Date: Tue, 28 Dec 2021 15:03:38 +0100 From: Lars-Dominik Braun To: Hartmut Goebel Subject: Re: sanity-check fails with namespace packages Message-ID: References: <1df628db-1c7b-dd86-0b77-cd767fea593d@crazy-compilers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1df628db-1c7b-dd86-0b77-cd767fea593d@crazy-compilers.com> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52834 Cc: 52834@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Hartmut, > These fail due to sanity-check not being able to import "zope" - which > is a namespace package. Both use the "src directory layout" (source is > contained in a sub-directory "src"). As far as I see PEP 420 (implicit namespace packages) is supported by Python >=3.3 only, so I’m not sure the packages would work even if we disabled 'sanity-check, do they? Either way, I’m in favor of removing broken Python 2 packages. > This could be solved by fetching a list og namespace-packages and > checking whether a fails import is a namespace-package. Maybe there are > other solution. > […] >      nspkgs = set(dist.get_metadata_lines('namespace_packages.txt')) Depending on undocumented setuptools behavior should imo be avoided and – for top_level.txt – phased out if possible. Cheers, Lars