From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UM4wENyYVGAEMgAA0tVLHw (envelope-from ) for ; Fri, 19 Mar 2021 12:28:12 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0J0cDNyYVGD4UwAAB5/wlQ (envelope-from ) for ; Fri, 19 Mar 2021 12:28:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id E499B19D07 for ; Fri, 19 Mar 2021 13:28:11 +0100 (CET) Received: from localhost ([::1]:59520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNEEc-0001cb-RG for larch@yhetil.org; Fri, 19 Mar 2021 08:28:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNEEU-0001cU-Pj for guix-patches@gnu.org; Fri, 19 Mar 2021 08:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNEEU-0002ju-IX for guix-patches@gnu.org; Fri, 19 Mar 2021 08:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lNEEU-0005w5-EQ for guix-patches@gnu.org; Fri, 19 Mar 2021 08:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47214] [core-updates] gnu: python: Remove unnecessary files Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Mar 2021 12:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47214 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Julien Lepiller Cc: 47214@debbugs.gnu.org Received: via spool by 47214-submit@debbugs.gnu.org id=B47214.161615683922769 (code B ref 47214); Fri, 19 Mar 2021 12:28:02 +0000 Received: (at 47214) by debbugs.gnu.org; 19 Mar 2021 12:27:19 +0000 Received: from localhost ([127.0.0.1]:49007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNEDm-0005vB-N3 for submit@debbugs.gnu.org; Fri, 19 Mar 2021 08:27:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNEDk-0005uu-FY for 47214@debbugs.gnu.org; Fri, 19 Mar 2021 08:27:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:32823) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNEDe-0002Ce-FV; Fri, 19 Mar 2021 08:27:10 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=57552 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lNEDc-0004Vz-Mp; Fri, 19 Mar 2021 08:27:09 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210317133933.5eb6d325@tachikoma.lepiller.eu> <20210319000830.23926447@tachikoma.lepiller.eu> Date: Fri, 19 Mar 2021 13:27:06 +0100 In-Reply-To: <20210319000830.23926447@tachikoma.lepiller.eu> (Julien Lepiller's message of "Fri, 19 Mar 2021 00:08:30 +0100") Message-ID: <87k0q3fhwl.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616156892; h=from:from:sender:sender: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=cHuKuAaUcuAO35nOCc3ZTNYFN/nN6iaOr60e3CmxALU=; b=VqysLTLTJCeTgJ2t4IyQBa6DkjfmAQvL4C0GmEu9HvV66J0RQ6fJsRwXWlHo1ku8avgGVp /OHXPDapkvUz88Q4vBysA00jgH+N3+SAAaDeoLbh4ZoT6YCwzd1XgEdx2h17W2zzP1Cb3L 5VTR0ETO9tWmwxXXfKphj0l97k/VCg45WLvgTbbDWdx5rJKlqvhUA7rq0qHjsP+T3FHzg4 asywIB72Uvz3FopYXlK5mYPceTCC+TCOh4MmmLvJjJfKMBjny19Crzbupc+UaHLcHaGczJ PTCtsy/9bnEZQS3sh+6s+XddFG5WPH3JSX4Jlp+pBvvH3u567EhIBGOIcaKiUA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616156892; a=rsa-sha256; cv=none; b=j6d3lxsnjvXOBjOlr5VPH13RabDjz1VxHZPH1w9+qx2Y/qtpvIC0Kr4dSPTAzksyQW+T5+ TIX0IAeUoNcyGwD1HKz1mND5h4K2ThGbFpeBqSZtqH3pQLDRx+f24+iEi6cc43EjBpK2KX 6MU8t8AOOe6rng0Hc9C92JjlzgOq3hlAKCvYDge3eS0tlfYU0LKXLtqvz/gikCdEcfLKDJ SKteSWMD5Lf4JLzQX9US/BD31ua0gmylQGh31T+zCUYlxustFtcXUQ/P6lDzC8scqGTIiv wD5WLnWj8pP3NqcH9lDev8NYUl6BmhhxPLugKt1Gat/1awbJhbpbFqfna1kRWg== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.91 Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: E499B19D07 X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: HX6rblA/+n01 Hi Julien, Julien Lepiller skribis: > Le Wed, 17 Mar 2021 13:41:02 +0100, > Julien Lepiller a =C3=A9crit : > >> Hi Guix! >>=20 >> this patch (going to core-updates) removes files from the output of >> python2 and python3, in an attempt to save some space. First, I >> noticed that python3 shipped windows binaries in its source >> distribution and installs them to the output, in >> lib/python3.8/distutils/command/*.exe, >> lib/python3.8/site-packages/*.exe and >> lib/python3.8/site-packages/pip/_vendor/distlib/*.exe. I remove them >> from the snippet, so they should not be installed anymore. >>=20 >> I also noticed that python installs files that were built during the >> test phase, so I remove them, but we need to check they are not >> actually needed. Other distros ship them in a separate package, so >> maybe we could have a separate test output if this is causing issues? >>=20 >> I haven't yet tested the patch, because it needs to rebuild part of >> the bootstrap chain. I'll report progress and update my patch >> depending on the results! > > I discovered other .exe in python3, so this updated patch deletes them. > Since I modify the python from commencement.scm by changing a phase in > python-2.7, I decided to also change the definition there to remove the > offending files. Woow, good catch. > 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. Unless it causes bootstrapping issues, I recommend removing those files from a snippet so that =E2=80=98guix build -S python=E2=80=99 returns the c= leaned-up source. WDYT? Thanks, Ludo=E2=80=99.