From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oIdQGW5m6GWBgAAAqHPOHw:P1 (envelope-from ) for ; Wed, 06 Mar 2024 13:49:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id oIdQGW5m6GWBgAAAqHPOHw (envelope-from ) for ; Wed, 06 Mar 2024 13:49:50 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bioneland.org header.s=20230804 header.b=uymwh4Wx; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709729390; 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:dkim-signature; bh=g0U8zzUATnLnH1D5HtZBxHATsL2K/GTOcas2uzFVntM=; b=NoN32qjneWVAib/JY8U9jqmj9DwPRijEKEwCrxLgkvqEBu3h4JXVn1Qck8kH+AzuxI3KtX rooNk+VZ7Jl91vL7w9p9Noz+9d7WWwRqizRftXXnbyjpoLU7mx18KNo1YTQwDAjzWh6QWj mDUeJKVQpXgZmm/pg+G1zRwMCuDWHwpDkF49juNZKvDHhQNvPQDC5H42aJW74PFUOanaxa /+2BzQfRHlCNSbOdvzfK26zDo0oAPUYKRlr6uCtPlFKVKAZMDqGLRcBTwrPMePqg7dy+dS JfERD1KH0lEwQexULOaWdmeVR34xrMdCL/lABjO5E3VJQt4eMJQbE+C9SoNSAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bioneland.org header.s=20230804 header.b=uymwh4Wx; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709729390; a=rsa-sha256; cv=none; b=ICHCfLMqyBd17aXVmMk1oUMwL96SaSXH/KyFdh6kksTpRvmSqUbqerd8ULK20eSH62P8En sYCHaG5pF6YH0vf/6dCODK7mbR+ZiitXdUknFdR/yscg0/+RlKbiiyuxnn2UZeY/p5wmwu 9WB7oprliKCPjK/gMsnjdxH+VhcNwdDZ+E4NP8ocRuen5IxM3UDhKX2Mi6AR1bBDqC4rAE 9MzhmZSieX6T4YBML4mnAqNcIKCiSVQJ7o4SmQGQpwIW9aaCMTRGbmwg2znw2DDrYEV5Ca EiP0cwUl+1md3RaUyFakV2EDWzoHws/aQIcw9MZzhQgkJOxdRAVlMFZt5xV33Q== 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 aspmx1.migadu.com (Postfix) with ESMTPS id 0FA6D69A95 for ; Wed, 6 Mar 2024 13:49:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhqiG-0003w3-Tm; Wed, 06 Mar 2024 07:49:36 -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 1rhqiB-0003ua-OU for guix-patches@gnu.org; Wed, 06 Mar 2024 07:49:32 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhqiB-0000Wb-GB for guix-patches@gnu.org; Wed, 06 Mar 2024 07:49:31 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rhqig-0005Kn-3v for guix-patches@gnu.org; Wed, 06 Mar 2024 07:50:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60240] [PATCH v2] gnu: Add python-3.12 and python-next. Resent-From: Tanguy LE CARROUR Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Mar 2024 12:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60240 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Lars-Dominik Braun Cc: 60240@debbugs.gnu.org Received: via spool by 60240-submit@debbugs.gnu.org id=B60240.170972938920482 (code B ref 60240); Wed, 06 Mar 2024 12:50:02 +0000 Received: (at 60240) by debbugs.gnu.org; 6 Mar 2024 12:49:49 +0000 Received: from localhost ([127.0.0.1]:49991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhqiS-0005KI-Vo for submit@debbugs.gnu.org; Wed, 06 Mar 2024 07:49:49 -0500 Received: from smtp-190c.mail.infomaniak.ch ([185.125.25.12]:59617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhqiP-0005Js-U0 for 60240@debbugs.gnu.org; Wed, 06 Mar 2024 07:49:47 -0500 Received: from smtp-4-0000.mail.infomaniak.ch (unknown [10.7.10.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4TqXLX4XZrzMrYvp; Wed, 6 Mar 2024 13:49:08 +0100 (CET) Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4TqXLX1v1RzqHY; Wed, 6 Mar 2024 13:49:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bioneland.org; s=20230804; t=1709729348; bh=h+mbjhxQMh/nBGSB8IwylPR6ZTbUZbAq9ToDc4d7BKs=; h=References:Subject:From:Cc:To:In-Reply-To:Date:From; b=uymwh4WxO1rHjHBKVP8+zf9VrvoOtEI8hO0EpO2yGja4u+6H3PjAfOfDeII5VG1k6 YIaIaLFm9OfJE6eBKV3l56696VoAerGbntpN1Emg2pdYoGheSUQDoxY6/tZIwezpdl tFVq0A0AHFraHxejAD1fIzfohovdXCdime2JqKIslOgqy8yHLGM48BYch9Q9BHyt3V NyWkzR8tnphxl7C7gGOh6ZBCFH2hq0LOcWkuXIvTOCGNJEkF50KvQbfdPI0wVAkJgh 7jWerfrYnRxDaGhbzEDxOnDmzc7hsLLoEekc1XaXd87i2uQX3c5pPA/SgSankVAZYj FpBPbWWBn++aw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable References: <20221221153230.27764-1-tanguy@bioneland.org> <4832d706e706ced5aa8a52f1b63b1e676ea5fd3d.1708516654.git.tanguy@bioneland.org> <170893592338.2024.18126018474930945065@bioneland.org> From: Tanguy LE CARROUR In-Reply-To: Date: Wed, 06 Mar 2024 13:49:07 +0100 Message-ID: <170972934744.10042.4258218570652595127@bioneland.org> User-Agent: alot/0.10 X-Infomaniak-Routing: alpha 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.37 X-Spam-Score: -5.37 X-Migadu-Queue-Id: 0FA6D69A95 X-Migadu-Scanner: mx11.migadu.com X-TUID: YutPdgKGbdjn Hi Lars, Quoting Lars-Dominik Braun (2024-03-02 10:59:23) > And actually one more nitpick: The name of the package should be > =E2=80=9Cpython-next=E2=80=9D not =E2=80=9Cpython=E2=80=9D, otherwise `gu= ix install python` > will pick Python 3.12 (it=E2=80=99s based on the name property, not the > variable name). Oh=E2=80=A6 thanks! Fixed in v3. The package name only apply when used I input, right? I submitted other patches where I did the same. But it=E2=80=99s a differen= t matter for Python libraries, I guess!? =F0=9F=A4=94 > > Sorry, but I=E2=80=99m not sure to see what you mean!? > > Outputs are defined for `out`, `tk` and `idle`. And I see phases to move > > files to the outputs: `move-tk-inter` and `move-idle`. > >=20 > > What do you mean by `referenced from out`? And how would you remove such > > a reference! >=20 > so, if you look at `guix size python@3.12`, you can see > it lists tk and tcl. And then a `grep -Ri /gnu/store/path/to/tcl > /gnu/store/path/to/python` reveals it=E2=80=99s being referenced by > lib/python3.12/_sysconfigdata__linux_x86_64-linux-gnu.py and > lib/python3.12/config-3.12-x86_64-linux-gnu/Makefile, which are both > part of the default =E2=80=9Cout=E2=80=9D output. That means TCL and TK a= re both > part of the closure of the python@3.12 package, i.e. they are downloaded > whenever you install it, making the package =E2=80=9Cbigger=E2=80=9D in s= ize (234.5 > MiB in total to be precise). I believe we wanted to avoid that by moving > some parts of Python into the separate =E2=80=9Ctk=E2=80=9D output. But a= pparently > that does not work (any more). > The attached patch (on top of yours) removes these references and shrinks > the closure of python@3.12 to 180.6 MiB. Oh-again! Thanks for taking the time to clarify! I think I now see what you see: ```console $ ./pre-inst-env guix size python-next store item total s= elf /gnu/store/g6w91736w66pszrg0bmcgwx84ahw7frd-python-next-3.12.2 180.6 = 82.3 45.6% /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35 40.6 = 38.8 21.5% /gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib 75.3 = 34.7 19.2% /gnu/store/69wd3pd1hd3j84xr965jj2fk2qmxn0hl-openssl-3.0.8 83.4 = 8.1 4.5% /gnu/store/bcc053jvsbspdjr17gnnd9dg85b3a0gy-ncurses-6.2.20210619 81.2 = 5.9 3.3% /gnu/store/4jakqiibsvrkv4jdw1wyl6racrwv9bkh-sqlite-3.39.3 86.0 = 3.4 1.9% /gnu/store/zzyywykw7kriln18rxqd82f0k5kidla7-bash-static-5.1.16 1.8 = 1.8 1.0% /gnu/store/lxfc2a05ysi7vlaq0m3w5wsfsy0drdlw-readline-8.1.2 82.6 = 1.4 0.8% /gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8 77.7 = 1.4 0.8% /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16 41.6 = 1.0 0.6% /gnu/store/2w976k6g70gkfih9wwhalqsni209vcqz-gdbm-1.23 75.9 = 0.6 0.4% /gnu/store/pl09vk5g3cl8fxfln2hjk996pyahqk8m-bzip2-1.0.8 76.7 = 0.4 0.2% /gnu/store/fw1wywd34vh33l4dq182ds5d7jdz45j5-expat-2.5.0 75.7 = 0.4 0.2% /gnu/store/slzq3zqwj75lbrg4ly51hfhbv2vhryv5-zlib-1.2.13 75.5 = 0.2 0.1% /gnu/store/w8b0l8hk6g0fahj4fvmc4qqm3cvaxnmv-libffi-3.4.4 75.5 = 0.2 0.1% total: 180.6 MiB ``` No more Tcl/Tk, thanks! =F0=9F=91=8D If you don=E2=80=99t mind, I squashed your modification in v3. > But I don=E2=80=99t know whether it has any negative side-effects (i.e. > packages not building any more), because I can=E2=80=99t build libxslt w= ith > Python 3.12 due to the module =E2=80=9Cimp=E2=80=9D having been removed = in Python > 3.12. Mmmm=E2=80=A6 is it something that has to be fixed in `libxslt`? More likely, it comes from `python-lxml`. Our current version is 4.9.1, and one test file (`src/lxml/html/tests/test_html5parser.py`) depends on `imp` for `imp.new_module`. This has been dropped in 5.1.0. Regards, --=20 Tanguy