From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 03 05:46:54 2021 Received: (at 47214) by debbugs.gnu.org; 3 Jun 2021 09:46:54 +0000 Received: from localhost ([127.0.0.1]:42413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lojwE-0007U3-Ed for submit@debbugs.gnu.org; Thu, 03 Jun 2021 05:46:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lojwC-0007Op-1k for 47214@debbugs.gnu.org; Thu, 03 Jun 2021 05:46:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34344) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lojw6-0003qo-Kd; Thu, 03 Jun 2021 05:46:46 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59542 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lojw6-0002l2-CI; Thu, 03 Jun 2021 05:46:46 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Julien Lepiller Subject: Re: bug#47214: [core-updates] gnu: python: Remove unnecessary files References: <20210317133933.5eb6d325@tachikoma.lepiller.eu> <20210319000830.23926447@tachikoma.lepiller.eu> <87k0q3fhwl.fsf_-_@gnu.org> <20210603035638.6e6fe473@tachikoma.lepiller.eu> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 15 Prairial an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 03 Jun 2021 11:46:44 +0200 In-Reply-To: <20210603035638.6e6fe473@tachikoma.lepiller.eu> (Julien Lepiller's message of "Thu, 3 Jun 2021 03:56:38 +0200") Message-ID: <87a6o7wa9n.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 47214 Cc: 47214@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: -3.3 (---) Hi, Julien Lepiller skribis: > Le Fri, 19 Mar 2021 13:27:06 +0100, > Ludovic Court=C3=A8s a =C3=A9crit : > >> > From 0d2d9a32cbbf24eadf74271b2fb1304b7a72d281 Mon Sep 17 00:00:00 >> > 2001 From: Julien Lepiller >> > Date: Wed, 17 Mar 2021 13:33:22 +0100 >> > Subject: [PATCH 1/2] gnu: python: Remove unnecessary files. >> > >> > * gnu/packages/python.scm (python2)[arguments]: Remove files built >> > during the test phase. >> > (python3)[arguments]: Also remove windows binaries shipped with the >> > sources.=20=20 >>=20 >> Unless it causes bootstrapping issues, I recommend removing those >> files from a snippet so that =E2=80=98guix build -S python=E2=80=99 retu= rns the >> cleaned-up source. [...] > Hi, sorry for the late reply. I need to use unzip on these files to > remove some of their content, and rezip them later. How can I do that > from a snippet? Oh right, the bit that unzips/rezips .whl files cannot easily be done from a snippet, so better keep it as a phase. Deleting *.exe can be done from a snippet though. BTW, the patch reads: (find-files "Lib/distutils/command" ".*.exe$") but the regexp should be: "\\.exe$" (=E2=80=9C.*=E2=80=9D is unnecessary, but the dot before =E2=80=9Cexe=E2=80= =9D must be protected.) Likewise for: (find-files "Lib/ensurepip" ".*.whl$") Thanks, Ludo=E2=80=99.