From unknown Mon Jul 21 01:37:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68241 <68241@debbugs.gnu.org> To: bug#68241 <68241@debbugs.gnu.org> Subject: Status: [PATCH] gnu: python: Fix sitecustomize.py Reply-To: bug#68241 <68241@debbugs.gnu.org> Date: Mon, 21 Jul 2025 08:37:20 +0000 retitle 68241 [PATCH] gnu: python: Fix sitecustomize.py reassign 68241 guix-patches submitter 68241 Konrad Hinsen severity 68241 normal tag 68241 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 04 07:44:42 2024 Received: (at submit) by debbugs.gnu.org; 4 Jan 2024 12:44:42 +0000 Received: from localhost ([127.0.0.1]:53854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLN5V-0004yE-PO for submit@debbugs.gnu.org; Thu, 04 Jan 2024 07:44:42 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLN5S-0004xw-Ad for submit@debbugs.gnu.org; Thu, 04 Jan 2024 07:44:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rLN5I-0003Z9-Sh for guix-patches@gnu.org; Thu, 04 Jan 2024 07:44:28 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rLN5F-0007cz-Do for guix-patches@gnu.org; Thu, 04 Jan 2024 07:44:27 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1D1CB5C0148; Thu, 4 Jan 2024 07:44:22 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 04 Jan 2024 07:44:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1704372262; x=1704458662; bh=rNaw0PSg01SRAFMdD6Q2m0OGRM+YMeud et/W+HRQeAU=; b=U63BvlMRzdfoLGjP/usgSxHri0CyUq0hgcsQlJE+FnjDUbqV d/Gad910pea88XIXke3wPlQvpNhQ1lXoTPvMa95v0xKJuSaGODvthrTcD7i/OlQu ESYJuxivVFDxToicCYGujP8Um8NojLF4kXBXns1G4Yl4m+Ny4596aSVh6qLgC05Z tCtErvsqE5x/fL8Ee8JSMX56CvYcWiSXIYzYxXxXg9P3BQv23M/QciViHlGH7/H1 vxfyp4ax9JQrikeOR8l2tQrmTI+FPLmDiSS8VYlK0IV+ZvnCD+hVS8D/AJRsKCVl ea/D/8+nbVmSeg+tb1HFd7gF557eifl1O+0Ukg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1704372262; x=1704458662; bh=rNaw0PSg01SRAFMdD6Q2m0OGRM+YMeudet/ W+HRQeAU=; b=5UPMzB+TIuMApbKIVhfbU0SDuB9ZpsmKqjGCh1MvAc3dNHPGGOD 5w4i1w4x6ETvrFeyA4XgJMUHI/6pfiVH8UX2ApNWQ4p+SYIazEQOjPPem1dEABk3 AD7ma1osqwopBHdfutc7VHaXYmetntzQPBrx3L297vUVxM/055Gw6uEOPVjq/+lk v3b8zzM89TYE1PYdmpkMd5Ly+4AksMsK8EPa3UrCLD0KlztItzLR94GtwltNz+D+ jy6rJQVyLo7oEEjrqmQl0JcxDXByo/TqJ2RJ4ThXsTRuv9Eck7/E7lv4BFaRNvM6 w/Jt7feG9VNiQf8ZiiVCLs71hBQDf+zyedg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdegjedggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpefmohhnrhgrugcujfhinhhsvghnuceokhhonhhrrggurdhhihhnshgv nhesfhgrshhtmhgrihhlrdhnvghtqeenucggtffrrghtthgvrhhnpeegveetieefgeefhe efvdfgkeejuedtgfeugfefvdfhueetieefvdehteeftdefheenucffohhmrghinhepghhn uhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvth X-ME-Proxy: Feedback-ID: i184641e2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 Jan 2024 07:44:21 -0500 (EST) From: Konrad Hinsen To: guix-patches@gnu.org Subject: [PATCH] gnu: python: Fix sitecustomize.py Date: Thu, 04 Jan 2024 13:44:19 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.27; envelope-from=konrad.hinsen@fastmail.net; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit 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: -0.0 (/) * gnu/packages/aux-files/python/sitecustomize.py: normalize sys.prefix to deal with situations where it contains "../" This happens in particular when running Python from a Singularity image created by Guix. See https://issues.guix.gnu.org/53258. Change-Id: Ibfe13d7c2a14beaa199f599e64bc0b7bfb500fe8 --- gnu/packages/aux-files/python/sitecustomize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/aux-files/python/sitecustomize.py b/gnu/packages/aux-files/python/sitecustomize.py index e2348e0356..82ea91104d 100644 --- a/gnu/packages/aux-files/python/sitecustomize.py +++ b/gnu/packages/aux-files/python/sitecustomize.py @@ -37,7 +37,7 @@ import sys major_minor = '{}.{}'.format(*sys.version_info) site_packages_prefix = os.path.join( 'lib', 'python' + major_minor, 'site-packages') -python_site = os.path.join(sys.prefix, site_packages_prefix) +python_site = os.path.normpath(os.path.join(sys.prefix, site_packages_prefix)) try: all_sites_raw = os.environ['GUIX_PYTHONPATH'].split(os.path.pathsep) base-commit: 7b0863f07a113caef26fea13909bd97d250b629e -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 06 04:32:17 2024 Received: (at 68241) by debbugs.gnu.org; 6 Jan 2024 09:32:17 +0000 Received: from localhost ([127.0.0.1]:58589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rM32P-0004lN-1u for submit@debbugs.gnu.org; Sat, 06 Jan 2024 04:32:17 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:59103) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rM32K-0004l5-Kh for 68241@debbugs.gnu.org; Sat, 06 Jan 2024 04:32:15 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id BC0C83200A61; Sat, 6 Jan 2024 04:32:01 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 06 Jan 2024 04:32:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1704533521; x=1704619921; bh=YMkWzQHowm dH/LW4lotQdhaOG93zvOp1TMjHKoLYtq8=; b=llPuHu41ZquZJK5BmhsNwxRxr5 qr5IxaVEf9Vn03HQFsjzsWkDcQL+kdI6dU9hiakYGkUHnXfv63yXSVm4dY6k6MaS 0GxDXPMFVlzVHIiU23hlEVyOLJutovcLkXDlIotfZvW6cLLYS6JX2riz7JG+A4MU Yl1ffAVWS2aeLbMfVberqopYKZZBx8DsKwaV6De6uy1VKomGLNImqYonay97iTCt 0xiBWBwwVqwEsS+DZQBKEMyFkzUcGBgjEu1CWA2bOniJb9XNDOxHAIb7d2+jZTzN 8XNsrHlqaUnyRWPnhj0JIkZuMVYoqIKq5uUcZXd6hLIHzISgsmO3x7bsgc3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704533521; x=1704619921; bh=YMkWzQHowmdH/LW4lotQdhaOG93z vOp1TMjHKoLYtq8=; b=gNsyyN9b885lfpFGDnTtxMsigje47uKInyJStW871Fq9 nWl5K5LLE4MblEuE0n+z5sZvLsccUbvSp2gcysrXE64I+mKVhjN4hNLI6jil//Xr JgxbuIDKYrKIcF5J/uzB6oOFS0gqLJDy6S3mPRmW25dQ3N5WcXiGgzgsoJXnB4tc C10dEO9YLw+jZR0hkk77HDCzQlIM426LrQxqvCTRV0qhnL7bOQb7AkLQTuxJdzyK V2c7kXT7y9Tzr/dldl+h0KdEgXMK2lYUDAzDR+2SZwLv7YEkV380YoPPXfuwihvj X8tZdsjh+BmpW8DcOGgjUhloF7BGsUkFlnF9kglvtg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehuddgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffffkgggtsehttdertd dttddtnecuhfhrohhmpefmohhnrhgrugcujfhinhhsvghnuceokhhonhhrrggurdhhihhn shgvnhesfhgrshhtmhgrihhlrdhnvghtqeenucggtffrrghtthgvrhhnpeeikeejjeevue eifeejhedtgeethfdutefgveffhfeuheejveeiieegvdfhtdeifeenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehkohhnrhgrugdrhhhinhhsvg hnsehfrghsthhmrghilhdrnhgvth X-ME-Proxy: Feedback-ID: i184641e2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 6 Jan 2024 04:32:00 -0500 (EST) From: Konrad Hinsen To: 68241@debbugs.gnu.org Subject: Re: [PATCH] gnu: python: Fix sitecustomize.py In-Reply-To: References: Date: Sat, 06 Jan 2024 10:32:00 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 68241 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 (-) Konrad Hinsen writes: > * gnu/packages/aux-files/python/sitecustomize.py: normalize sys.prefix > to deal with situations where it contains "../" This patch leads to massive rebuilds for non-trivial environments. I will submit an alternative that patches Python via a graft. Cheers, Konrad. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 06 04:37:38 2024 Received: (at 68241) by debbugs.gnu.org; 6 Jan 2024 09:37:38 +0000 Received: from localhost ([127.0.0.1]:58595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rM37Z-0004sz-OS for submit@debbugs.gnu.org; Sat, 06 Jan 2024 04:37:38 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:38771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rM37W-0004sj-Tv for 68241@debbugs.gnu.org; Sat, 06 Jan 2024 04:37:35 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 53CAA3200B35; Sat, 6 Jan 2024 04:37:24 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 06 Jan 2024 04:37:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm2; t=1704533843; x=1704620243; bh=ZyjO1UMWmj b+1MHGEfjXUVDVcX8tsCJwWuc1RJ876n8=; b=GHo3VDeLehGLacWE/k+gGFa2dS 3U+RkQ7LBZoUJmD8L70Su919r2tAOgQzsE8kqPAmA1M65RRftxQwoKW6CYZnZOXh 0fFmdI503sYUi+JNFn/5DDwQkmy3q0/rCVD3ENJ+kCLlFdDhkVSHswufflw/iV2W qL8YoTzoxXoTyKGFsFfPiwy98glPRHwtumpMmytZkN59Dw5Cjs/+pLrQdyoW4KUZ o05xbPjNewJqFLVZzcfpCo6RuZqmQcRfV/HomnE90Q0f+3Z0034UKVfb/t+oXJtZ NN/xDQYKiXCygsHBwx0EdESLyzGpwQtYgq84EF3p+6fROI3l0VGfymmlusEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704533843; x=1704620243; bh=ZyjO1UMWmjb+1MHGEfjXUVDVcX8t sCJwWuc1RJ876n8=; b=Zj0+v42hTrC9n/zzXNa5wQSrUY6R+e4EU92YiOPINViB hCwxo7CFT64QX+imrrxQy07G7fme7BHmTyeiyr9L2LpQFsWGkJ6Us29aTwXWK8eY fooPHnVT50R1jVX85gl0aUH900FEk01Johbhx9wixb4XtQctOWEIWUu07t89H/rj HY0fyeyjL+NbtTIRDxmC08jQzkkwej4qcW5zv6lGP16RcYo+YNp5YWyfYbEaKsO7 Of2qH9RXun+f4vS+fweri0wg4ogU6hW9dASEf5oimOEQ8LMyRX7o/UygJBnzMKeP 0fc2PRaRo8osz4Cswt9+NYC6Sd/q6ueLCudl3QPUyA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehuddgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtgfesthhqredttd dtjeenucfhrhhomhepmfhonhhrrgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhs vghnsehfrghsthhmrghilhdrnhgvtheqnecuggftrfgrthhtvghrnhepgfegheehlefhvd ffveffteejueeiffffkeetuddvfeevffevieetfeelveeifeelnecuffhomhgrihhnpehg nhhurdhorhhgpdhprghthhdrthhonecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepkhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhn vght X-ME-Proxy: Feedback-ID: i184641e2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 6 Jan 2024 04:37:22 -0500 (EST) From: Konrad Hinsen To: 68241@debbugs.gnu.org Subject: [PATCH] gnu: python: Fix sitecustomize.py Date: Sat, 06 Jan 2024 10:37:23 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 68241 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 (-) * gnu/packages/aux-files/python/sitecustomize.py: normalize sys.prefix to deal with situations where it contains "../" This happens in particular when running Python from a Singularity image created by Guix. See https://issues.guix.gnu.org/53258. This is a variant of https://issues.guix.gnu.org/68241 that implements the fix as a graft rather than as a patch to the Python package. Since many packages in Guix depend on Python, the basic patch leads to enormous build times. A graft should be sufficient since the fix has no impact on Python being used within Guix. Change-Id: I3b07f4edf474a12fcabfbf90f37c4c0223278330 --- .../aux-files/python/sitecustomize-fixed.py | 65 +++++++++++++++++++ gnu/packages/python.scm | 22 ++++++- 2 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 gnu/packages/aux-files/python/sitecustomize-fixed.py diff --git a/gnu/packages/aux-files/python/sitecustomize-fixed.py b/gnu/pac= kages/aux-files/python/sitecustomize-fixed.py new file mode 100644 index 0000000000..82ea91104d --- /dev/null +++ b/gnu/packages/aux-files/python/sitecustomize-fixed.py @@ -0,0 +1,65 @@ +# -*- coding: utf-8 -*- +# GNU Guix --- Functional package management for GNU +# Copyright =C2=A9 2021 Maxim Cournoyer +# +# This file is part of GNU Guix. +# +# GNU Guix is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or (at +# your option) any later version. +# +# GNU Guix is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Guix. If not, see . + +import os +import site +import sys + +# Commentary: +# +# Site-specific customization for Guix. +# +# The program below honors the GUIX_PYTHONPATH environment variable to +# discover Python packages. File names appearing in this variable that ma= tch +# a predefined versioned installation prefix are added to the sys.path. T= o be +# considered, a Python package must be installed under the +# 'lib/pythonX.Y/site-packages' directory, where X and Y are the major and +# minor version numbers of the Python interpreter. +# +# Code: + +major_minor =3D '{}.{}'.format(*sys.version_info) +site_packages_prefix =3D os.path.join( + 'lib', 'python' + major_minor, 'site-packages') +python_site =3D os.path.normpath(os.path.join(sys.prefix, site_packages_pr= efix)) + +try: + all_sites_raw =3D os.environ['GUIX_PYTHONPATH'].split(os.path.pathsep) +except KeyError: + all_sites_raw =3D [] +# Normalize paths, otherwise a trailing slash would cause it to not match. +all_sites_norm =3D [os.path.normpath(p) for p in all_sites_raw] +matching_sites =3D [p for p in all_sites_norm + if p.endswith(site_packages_prefix)] + +if matching_sites: + # Deduplicate the entries, append them to sys.path, and handle any + # .pth files they contain. + for s in matching_sites: + site.addsitedir(s) + + # Move the entries that were appended to sys.path in front of + # Python's own site-packages directory. This enables Guix + # packages to override Python's bundled packages, such as 'pip'. + python_site_index =3D sys.path.index(python_site) + new_site_start_index =3D sys.path.index(matching_sites[0]) + if python_site_index < new_site_start_index: + sys.path =3D (sys.path[:python_site_index] + + sys.path[new_site_start_index:] + + sys.path[python_site_index:new_site_start_index]) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 51d5f598d7..3cc3c08360 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -414,7 +414,16 @@ (define-public python-2.7 packages; exception-based error handling; and very high level dynamic data types.") (properties '((cpe-name . "python"))) - (license license:psfl))) + (license license:psfl) + (replacement python-2.7-fixed))) + +(define-public python-2.7-fixed + (package + (inherit python-2.7) + (native-inputs + (modify-inputs (package-native-inputs python-2.7) + (replace "sitecustomize.py" + (local-file (search-auxiliary-file "python/sitecustomize-fixed.py= "))))))) =20 ;; Current 2.x version. (define-public python-2 python-2.7) @@ -594,7 +603,16 @@ (define-public python-3.10 ;; Python 3.9. (search-path-specification (variable "PYTHONTZPATH") - (files (list "share/zoneinfo"))))))) + (files (list "share/zoneinfo"))))) + (replacement python-3.10-fixed))) + +(define-public python-3.10-fixed + (package + (inherit python-3.10) + (native-inputs + (modify-inputs (package-native-inputs python-3.10) + (replace "sitecustomize.py" + (local-file (search-auxiliary-file "python/sitecustomize-fixed.py= "))))))) =20 ;; Current 3.x version. (define-public python-3 python-3.10) base-commit: 7b0863f07a113caef26fea13909bd97d250b629e --=20 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 08 03:57:38 2024 Received: (at 68241) by debbugs.gnu.org; 8 Jan 2024 08:57:38 +0000 Received: from localhost ([127.0.0.1]:35154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMlRy-0000QN-5K for submit@debbugs.gnu.org; Mon, 08 Jan 2024 03:57:38 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:62029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMlRw-0000Q6-5m for 68241@debbugs.gnu.org; Mon, 08 Jan 2024 03:57:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=qiv6l0WKBR17FyKc5UefPFF0ttfKMQff1YD045NDExI=; b=VrOX50SISE0azSyQeST0TUj/CZO7gcXMO/XdQlby1qVF2DjMo0p/eSzx 38lzZ7GORVQrq6fJVjVxwnxToMrsmf0nePtxt2lmMojzQN+aUudYam/lX WaoWIBTc9UY43Q+WfzFK3yJrS0EC62ajBoXpLSPxDCX7ZLPCzjkOXHSGO 4=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.04,340,1695679200"; d="scan'208";a="76094382" Received: from unknown (HELO ribbon) ([193.50.110.52]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jan 2024 09:57:24 +0100 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Konrad Hinsen Subject: Re: [bug#68241] [PATCH] gnu: python: Fix sitecustomize.py In-Reply-To: (Konrad Hinsen's message of "Thu, 04 Jan 2024 13:44:19 +0100") References: Date: Mon, 08 Jan 2024 09:57:23 +0100 Message-ID: <87o7dw6w3w.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68241 Cc: Josselin Poiret , 68241@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.0 (-) Hi Konrad! Konrad Hinsen skribis: > * gnu/packages/aux-files/python/sitecustomize.py: normalize sys.prefix > to deal with situations where it contains "../" > > This happens in particular when running Python from a Singularity image > created by Guix. See https://issues.guix.gnu.org/53258. > > Change-Id: Ibfe13d7c2a14beaa199f599e64bc0b7bfb500fe8 > --- > gnu/packages/aux-files/python/sitecustomize.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gnu/packages/aux-files/python/sitecustomize.py b/gnu/package= s/aux-files/python/sitecustomize.py > index e2348e0356..82ea91104d 100644 > --- a/gnu/packages/aux-files/python/sitecustomize.py > +++ b/gnu/packages/aux-files/python/sitecustomize.py > @@ -37,7 +37,7 @@ import sys > major_minor =3D '{}.{}'.format(*sys.version_info) > site_packages_prefix =3D os.path.join( > 'lib', 'python' + major_minor, 'site-packages') > -python_site =3D os.path.join(sys.prefix, site_packages_prefix) > +python_site =3D os.path.normpath(os.path.join(sys.prefix, site_packages_= prefix)) IIRC Josselin had a patch for , but I can=E2=80=99t find it. Josselin? Also, do I get it right that the patch you sent fixes more than #53258? Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 08 04:14:34 2024 Received: (at 68241) by debbugs.gnu.org; 8 Jan 2024 09:14:34 +0000 Received: from localhost ([127.0.0.1]:35194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMliM-0003VN-0c for submit@debbugs.gnu.org; Mon, 08 Jan 2024 04:14:34 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:59927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMliJ-0003V6-IP for 68241@debbugs.gnu.org; Mon, 08 Jan 2024 04:14:33 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 8CB6F3201110; Mon, 8 Jan 2024 04:14:18 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 08 Jan 2024 04:14:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1704705258; x=1704791658; bh=dAe76mFCxl qSPgvY+A5gXgX0pXFlXvyh6L9AVqfd/w4=; b=gDXN0LP2iofHT19TxmRNMzF7KT LmC9pNYgWqZy1ZrXG7NxvGlUaXJI9hOXxiDqVXPDFuDsdCsk0f+/L1W+AgRut830 ObXomYrLNSWJvKuiwqJ2enpPHPIGfrKqzl0PHG3YkDsxzpC8K3XmxVcK8PMObXcs vGhl8LbJv4JSLv6HuntahPUlZFVRei/LRoL+I+aqlz5ZBxtjNWtFiSQUlNaaKb52 hGuZq9ktLdVg5HotUFuRByamY8Tud6XLFBJuscEHyiuekd0DXzqUD4XyG5V6pCT4 8moFx1Qp6hWg59KFQNlXTQGZA4sITNqmgJnIeslyf3HfYUCZ4uWZzNDpLkag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704705258; x=1704791658; bh=dAe76mFCxlqSPgvY+A5gXgX0pXFl Xvyh6L9AVqfd/w4=; b=d5tZh0jfJum4DFaijhHHE7MUKXd5YBnExojYasZJU4k4 dK3MjTIQZQRmVqcl3/chjdT7Q1cXr3UJvMq0N3ke491P3SvcUomHOQmCqRaLbQWT XSqpyw0DaPIWGMUFpqO90DQJSKrCTVCZKG7ThXk5WkgHA33bZQfFgd89BX8nK2AL gcBBJHHdAMZPkLTl8qS8XxKZafwvkDofwqHQgAdkIrgSqz5FvVMG/O4nWsbPqtnQ Syd9iYmPlLS2n0dP8okA+SgVYj958lb3WaflALrToS3E7/U48GAlxznbUFLBUjcv jrjS7cvlc2P0Rlk6gRmR1keiHGfr8Ab0QMJ0sdSGvw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehjedgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpefmohhnrhgr ugcujfhinhhsvghnuceokhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvg htqeenucggtffrrghtthgvrhhnpeffgefffefgveejkeduveekudffffduleelgfegtdeu feejleefjedthfeiffeiveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvth X-ME-Proxy: Feedback-ID: i184641e2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Jan 2024 04:14:17 -0500 (EST) From: Konrad Hinsen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#68241] [PATCH] gnu: python: Fix sitecustomize.py In-Reply-To: <87o7dw6w3w.fsf@gnu.org> References: <87o7dw6w3w.fsf@gnu.org> Date: Mon, 08 Jan 2024 10:14:14 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 68241 Cc: Josselin Poiret , 68241@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 Ludo, > Also, do I get it right that the patch you sent fixes more than #53258? #53258 is two things: a weird error message, and a failure to run valid Python code, the two being possibly related. My patch fixes the error message. The Python example that Marek gave already works fine in today's Guix, so it was probably fixed by something else as a side effect. Could the bug that causes the error message also mess up valid Python code? In theory, yes, but I don't have an example at hand. Cheers, Konrad. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 20 23:22:37 2024 Received: (at 68241) by debbugs.gnu.org; 21 Jan 2024 04:22:37 +0000 Received: from localhost ([127.0.0.1]:36290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRPLx-0003Pc-97 for submit@debbugs.gnu.org; Sat, 20 Jan 2024 23:22:37 -0500 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:47606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRPLs-0003PK-VD for 68241@debbugs.gnu.org; Sat, 20 Jan 2024 23:22:36 -0500 Received: by mail-qk1-x72c.google.com with SMTP id af79cd13be357-78333ad3a17so183386985a.3 for <68241@debbugs.gnu.org>; Sat, 20 Jan 2024 20:22:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705810943; x=1706415743; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=YWAnwDwbeAabNCWri8XQsOG9IqqXiZn1ro+vOfKHxVo=; b=Ey1P74d7lGopAdTYZD9LMrnF4QMa1QR3Xn7zzc750Kn7CSZDYL9PNbL9V7Apr6QXsi iu7eRzFOaasFD1WF1R6FOuPuue9XIUorpIASb21+aMR1ROKc398Zs4afZogmbTLG8Kwi qUMZDr7k+0DJ6cdKwgf99XLyANQZGq1MBpimtw25NWAVQuZd53gEkrhHft/I8XmElUXE bSCom+nRcWXyZBQ4DQzAnh0Rw2xNKhUEn8tpEr81QUG2byehVPUtF7Loz557DAgKQIIH gOXXBOgNLVLAG8SABS53KLvLs3SYK6hdy09+k7aZVy2Df1y9Xm1lLArACqFyc+07sRpS 83Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705810944; x=1706415744; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YWAnwDwbeAabNCWri8XQsOG9IqqXiZn1ro+vOfKHxVo=; b=jI80Qcbb49L8cNzo2qciu5p00HNnGhi3sS4E5YeeQL2miheY/bapoSrPm558Y1xufQ Fx40tu2RLxeNrxLS/+a51WGdK5weQhQmY67/bNRSSnXF5oDcNdtm1GOt3opJaaW1zvZj GIWR3rrDidFvw0vhaOAumOdft45bIDXTMOSSnO61OBCOlEGThuXosQHRkkaatQEGjeG4 m8XrGJN3DGTokCC5wfBNZ2kx6GXGRR1OeMm2Z3gifczbCKlk/WWrPj1tUqwK5eB0ZK1T ZTcFbLi9GvvSMlfoATenHRxEZkXKltisX4EGf6kRoHxqz2weTZ6Ao6NshRtSEeNkIJ66 iDqQ== X-Gm-Message-State: AOJu0YzuICLKfqfIv6MAfMJTKeIXfJ3j4Wca+9hZR+Pim5FetnWj4JkH 0Kbocb4SNq1tPoL00O2/KFMGaTeK2Q659UjjMtXvSxknsOGBFG8RDWN0cQIRlh4= X-Google-Smtp-Source: AGHT+IGF5lXMt8YJDZcY5pC7InGHjHtECqVFMGxCUmfcBbXWL+IoqD+sVaIKW+eQXag7CTI8gigRAQ== X-Received: by 2002:a05:620a:15a3:b0:783:8d6:2f71 with SMTP id f3-20020a05620a15a300b0078308d62f71mr3051968qkk.128.1705810943683; Sat, 20 Jan 2024 20:22:23 -0800 (PST) Received: from hurd (dsl-10-128-232.b2b2c.ca. [72.10.128.232]) by smtp.gmail.com with ESMTPSA id j28-20020a05620a0a5c00b007833dbbc07asm1067301qka.0.2024.01.20.20.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 20:22:23 -0800 (PST) From: Maxim Cournoyer To: Konrad Hinsen Subject: Re: [bug#68241] [PATCH] gnu: python: Fix sitecustomize.py In-Reply-To: (Konrad Hinsen's message of "Mon, 08 Jan 2024 10:14:14 +0100") References: <87o7dw6w3w.fsf@gnu.org> Date: Sat, 20 Jan 2024 23:22:21 -0500 Message-ID: <87plxvb9j6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68241 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , Josselin Poiret , 68241@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.0 (-) Hi Konrad, Konrad Hinsen writes: > Hi Ludo, > >> Also, do I get it right that the patch you sent fixes more than #53258? > > #53258 is two things: a weird error message, and a failure to run valid > Python code, the two being possibly related. > > My patch fixes the error message. The Python example that Marek gave > already works fine in today's Guix, so it was probably fixed by > something else as a side effect. Oh? And you tested using the exact same reproducer, using a relocatable pack? -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 21 06:11:28 2024 Received: (at 68241) by debbugs.gnu.org; 21 Jan 2024 11:11:28 +0000 Received: from localhost ([127.0.0.1]:36694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRVjb-0003A9-OI for submit@debbugs.gnu.org; Sun, 21 Jan 2024 06:11:28 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:50317) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRVjZ-00039o-Jt for 68241@debbugs.gnu.org; Sun, 21 Jan 2024 06:11:26 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id A70203200A61; Sun, 21 Jan 2024 06:11:15 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 21 Jan 2024 06:11:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1705835475; x=1705921875; bh=WcRd+fASNY nKdJKdJAany27U1no3NqJZMwpk9QwLids=; b=hqMzIVI480aXKHFH/KJW0HHgct fn120V5AiNhdvq5kp3Ihp1tw+F16JnZ5a7kNvOlw+dOdIgX6+czJ2w2kGY9tM0Lo C76AMOVF72T0R6J1CBIXlZ/eNSRkremDtUHiGZDPG3JnQdhwsk1P3E/+xYUjrWlt YXnw0xgD47IV2JCC6SoGcMDKUtVR+yOLSDWd4HCJMF8OR8t/dOw+HrzcxozKsxhP 2WzlsQQ3zN7/0Fu3qtaS0M00Qs4PBeQRl/a+KNALt+CsJtJys5ZxmbMzyB5K13EJ z3lQyvh0lVsdJ7YpZSaIK42ThOkTB9mWpEHYuQlUWZP+M6u3eHWHAhd+Lv6w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1705835475; x=1705921875; bh=WcRd+fASNYnKdJKdJAany27U1no3 NqJZMwpk9QwLids=; b=f8oiLGJH7KyHa13OnYEnWhmt2Mln3Oorlq0yB5adqx45 WodCfYzDxNWdTVIl7Zdp48BHTsTwhHIiS9czZ9Gn3mtsfitPeCDJINpdzrTnYEhE b2Nf/2pcAxhy0VKQvODvnlYxCsGFdbcwpMyhrAkAJhIXO0WX5faffRwIOnftZOle uNsbGQclliaXe/xY9+JzZPjeDDcBjE5jx1RFi8ph9034r53jU5UNTvtGMVyNx81q cPat2/fJWcjFXzlxv5GhC3ITXQBVLICkKwbLP395oJz7BQHp1j8aX2MOxV554bn2 rS0R+x+5YOm+fVTxAnpIzduhWzEg9bmd1ka9gjC/og== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekgedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpefmohhnrhgr ugcujfhinhhsvghnuceokhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvg htqeenucggtffrrghtthgvrhhnpeffgefffefgveejkeduveekudffffduleelgfegtdeu feejleefjedthfeiffeiveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvth X-ME-Proxy: Feedback-ID: i184641e2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 21 Jan 2024 06:11:13 -0500 (EST) From: Konrad Hinsen To: 68241@debbugs.gnu.org, Maxim Cournoyer Subject: Re: [bug#68241] [PATCH] gnu: python: Fix sitecustomize.py In-Reply-To: <87plxvb9j6.fsf@gmail.com> References: <87o7dw6w3w.fsf@gnu.org> <87plxvb9j6.fsf@gmail.com> Date: Sun, 21 Jan 2024 12:11:10 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 68241 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , Josselin Poiret 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 (-) Maxim Cournoyer writes: >> My patch fixes the error message. The Python example that Marek gave >> already works fine in today's Guix, so it was probably fixed by >> something else as a side effect. > > Oh? And you tested using the exact same reproducer, using a relocatable > pack? Yes, I tested it in a Singularity container. Cheers, konrad. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 21 13:29:37 2024 Received: (at 68241-done) by debbugs.gnu.org; 21 Jan 2024 18:29:37 +0000 Received: from localhost ([127.0.0.1]:38993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRcZc-0001to-Q7 for submit@debbugs.gnu.org; Sun, 21 Jan 2024 13:29:37 -0500 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:47317) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRcZY-0001tT-FR for 68241-done@debbugs.gnu.org; Sun, 21 Jan 2024 13:29:35 -0500 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-6818f3cf006so16434076d6.2 for <68241-done@debbugs.gnu.org>; Sun, 21 Jan 2024 10:29:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705861763; x=1706466563; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=rzHH4HnbhHWX+Kpy+COFBBXUTMGzY3jb6BZMzWQ00oU=; b=ZD8yo+5Nr5hm3cKoqCc7sKYM68gUimnLTiZnpn8GVH6v+i9gSOeD7OQVjLy0cY2ANH 0vM/wq+fjc0hjrlk1J84FUNZe3alE4IAEB2RC/MEb/XlJRP/bW3eqt1YaORRpXzac83U bjo40cE8RZUIunj/dJgYetK1KIW0RmDAcRjFOoMNMrHvce7K5wDwkR+FcOQwUGNRUdQp l/wjnT+iPCiZ8ueDAFbhM/mwJKQ/VKCfFKqnyuEiNCf02xqiwKBX+HabwZGOWqe/U8Zv 34Y/RIKMgEMjzYWUEMJF0Nw/Ico3t9nHuURx8GzElqVPoYBOZtzujIZCEG/z1kIS3oL2 1C7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705861763; x=1706466563; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rzHH4HnbhHWX+Kpy+COFBBXUTMGzY3jb6BZMzWQ00oU=; b=sfuJHXrMhypJ5toKm4pny3fN2HjzlZQyvvPEQbWAblxFdUYu57rsuTPSiKu4SeBHcj K5oxL7wEzGWSNoKtK7hKN3pIjQsHUMTqUwzyRwxSbOCmbxOmNy5KLDqM7PKvt1XyzwtA Hvfoh+g+Tcc+fvEPsrIFzJbJH+x9X8N58NAgXVz6xqnGz91IIU18XKbNEWbGyso3dext uqLHxqy+krnV9Vc1vz8oaCbq0Kb4xvZX/2Gga7h5klmV1Y7yPmuW5IKMcNNSPOPaBhUG OqUYehIYtSJukhb22/s9RlnHyBqLBGgd62dyyqUz8wKI+7DKf0RZ0tYFCK+BFXTW1v5M 6RNA== X-Gm-Message-State: AOJu0YwsJzhhGeiTZaPgPQFdpO6gUeOT3+8HtJ2rrP4CKi9cNCBSrUfU wk+XXnxIm+SdqcUZbVzr3LgktiDIJXQF7dCRQaKsVvoABN9DU8u/ X-Google-Smtp-Source: AGHT+IG0IxXEOXJ0ceUyUzVGnlAGRivrjkdIxFOyF+DU7sG3FZSd3bAPYP41uCGHmEudOO6GfqrnVw== X-Received: by 2002:a05:6214:19cc:b0:686:4f85:7653 with SMTP id j12-20020a05621419cc00b006864f857653mr3016953qvc.62.1705861762832; Sun, 21 Jan 2024 10:29:22 -0800 (PST) Received: from hurd (dsl-10-128-232.b2b2c.ca. [72.10.128.232]) by smtp.gmail.com with ESMTPSA id p5-20020a05620a112500b0078397532e70sm998661qkk.7.2024.01.21.10.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 10:29:22 -0800 (PST) From: Maxim Cournoyer To: Konrad Hinsen Subject: Re: [bug#68241] [PATCH] gnu: python: Fix sitecustomize.py In-Reply-To: (Konrad Hinsen's message of "Sun, 21 Jan 2024 12:11:10 +0100") References: <87o7dw6w3w.fsf@gnu.org> <87plxvb9j6.fsf@gmail.com> Date: Sun, 21 Jan 2024 13:29:20 -0500 Message-ID: <87v87m8rr3.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68241-done Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , Josselin Poiret , 68241-done@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.0 (-) Hi Konrad, Konrad Hinsen writes: > Maxim Cournoyer writes: > >>> My patch fixes the error message. The Python example that Marek gave >>> already works fine in today's Guix, so it was probably fixed by >>> something else as a side effect. >> >> Oh? And you tested using the exact same reproducer, using a relocatable >> pack? > > Yes, I tested it in a Singularity container. Great, it's now on core-updates. -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 22 02:16:17 2024 Received: (at 68241-done) by debbugs.gnu.org; 22 Jan 2024 07:16:18 +0000 Received: from localhost ([127.0.0.1]:39785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRoXZ-0003rP-KD for submit@debbugs.gnu.org; Mon, 22 Jan 2024 02:16:17 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:56241) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRoXT-0003qi-NQ for 68241-done@debbugs.gnu.org; Mon, 22 Jan 2024 02:16:16 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id 494A13200A4F; Mon, 22 Jan 2024 02:16:01 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Mon, 22 Jan 2024 02:16:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1705907760; x=1705994160; bh=gbA2FVSpwz EqJOqdINbrMiGws5eMk4XH1F3L66Qey4M=; b=wpl3UJDV7Nl45j0jqRPMeFJezD EVX/Dm/PEkSZC4Z4Q2PLlF6fdADHqpMzI7sLlreubk2ieCEJ87P3YcQT/8cTKJ9g hhOgj4mipPTpN15YYTMdhgFs/QCkzfcmnJLjCTr4jwOzU15RYjMRy50ZmqxIwzU8 KqablF5nEhdxU3HGL/uIMpajQ+uDbSp6rozHhMUWzr1DexgY1BvY3zKJt2kSkEdf 2c9LDHABpHiswqqBoUnO3IrWnc64LG2UvqJUeiwkFvbqiL+Bi78SOBEy3Rl4y3mJ AmGaMwLBW5ezCKB3zNhPgpSyxE1iJyqEdbZxAEwcm36zXaxgIgA88dcGPQTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1705907760; x=1705994160; bh=gbA2FVSpwzEqJOqdINbrMiGws5eM k4XH1F3L66Qey4M=; b=wyCcD3/iTnT/BpQx8iQbkAspHdllA3D6WrD9jcbvmwQ+ yVZBVMYbWeQXXOBvpFl12O9ptN2C4ludK2L3FWIr18DpEXBtDQILtzTkERxGf1uf z2cNkffBbd0fB78viVvf1Q0BhN67KeK90vgEKPJAUTJKfUeUgXe3aV71A3UHxddV HhLWiCSXCTBmc/NYa69sWtNNLKvZpTgUZGkYk1pPcaZyaPNTjG+eIW7fdg0M02wk fmPevh2LFfByZhCMf9XgdPgacn7caKA4GSxlcXAKDa4hTIQPrRK4G0PYYpDcyq4q /+NuVAn6v5zzzVZiM7LdZFsbkJeXUCe/dMYBmTCxfQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekhedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepmfhonhhr rgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnh gvtheqnecuggftrfgrthhtvghrnhepffegffefgfevjeekudevkeduffffudellefggedt ueefjeelfeejtdfhieffieevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepkhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvght X-ME-Proxy: Feedback-ID: i184641e2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Jan 2024 02:15:59 -0500 (EST) From: Konrad Hinsen To: Maxim Cournoyer Subject: Re: [bug#68241] [PATCH] gnu: python: Fix sitecustomize.py In-Reply-To: <87v87m8rr3.fsf@gmail.com> References: <87o7dw6w3w.fsf@gnu.org> <87plxvb9j6.fsf@gmail.com> <87v87m8rr3.fsf@gmail.com> Date: Mon, 22 Jan 2024 08:15:56 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 68241-done Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , Josselin Poiret , 68241-done@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 (-) Maxim Cournoyer writes: > Great, it's now on core-updates. Thanks! Konrad. From unknown Mon Jul 21 01:37:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 19 Feb 2024 12:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator