GNU bug report logs - #70672
[core-updates] Fix python package idle output

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Jean-Baptiste Note <jean-baptiste.note@HIDDEN>; Keywords: patch; dated Tue, 30 Apr 2024 13:43:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Changed bug title to '[core-updates] Fix python package idle output' from '["PATCH core-updates" 0/1] Fix python package idle output' Request was from Christopher Baines <mail@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 70672 <at> debbugs.gnu.org:


Received: (at 70672) by debbugs.gnu.org; 30 Apr 2024 13:45:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 30 09:45:54 2024
Received: from localhost ([127.0.0.1]:59507 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s1nnt-0003eu-MZ
	for submit <at> debbugs.gnu.org; Tue, 30 Apr 2024 09:45:54 -0400
Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:42208)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jean-baptiste.note.1999@HIDDEN>)
 id 1s1nns-0003em-H2
 for 70672 <at> debbugs.gnu.org; Tue, 30 Apr 2024 09:45:52 -0400
Received: by mail-wm1-x331.google.com with SMTP id
 5b1f17b1804b1-41adf3580dbso34055325e9.0
 for <70672 <at> debbugs.gnu.org>; Tue, 30 Apr 2024 06:45:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=m4x.org; s=gapps; t=1714484725; x=1715089525; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=d0/zkE7KMPi+QAKtBMT8QDaWwyO9ebejGIKY+G5rMHE=;
 b=Mf/T1r1JXMdUQwaDw5w8LYviUYbaWc5N0rgHDvflAUZxMQUO3PJBo2dTGQi1RasUA4
 neGh4aAILQmPKlN0/AOyVDeagWlNZvdm65HYdhdqDj9BelWXOQt0oJj3o6O0RQ2es+tG
 zn1fYeyfCb74SK6DO4Ly8A5e37L0joRQP9agM=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714484725; x=1715089525;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=d0/zkE7KMPi+QAKtBMT8QDaWwyO9ebejGIKY+G5rMHE=;
 b=XEpLgv0WaC8Mc43+lGmsqM/kZg4V5ydJgNO34umgW0b40pQxDe8rUtKg4oYrj0UWb2
 rRAP200LrsHY4cpy64OWE2FifMe+dWE4hPVxikeB6NZmNIgcjxqLerahWrRezVsFZ/nJ
 2TdIDq4R42V6MiPtk+dAlMQcInB755Xfwx6DsaPx25zstnJAHbJAMWo7W/2m69UTJT0K
 yLScx6BQS0P69lyEa/W+wMqZIiT0oabVSNSSYAAWO+49Mx+YJPZdib0fszdjsbGWaUdh
 P37rdF9j1+flTaOSj1L343nPfTP49nRtglm+qnyuR43TAQyeyX6C0/9vG/kQ3NlrLXvN
 a0CQ==
X-Gm-Message-State: AOJu0YzxoQYJEH5PnK5xhge+9iQgkOo56iOOuiMEtW7C//nrJnXbEsEq
 ric1Frh9J2UkPJJzzePU6KWDSA8LSFjETP3svnV+hTelqkwgnKQRsstBQUCoTE3aHD9OzIJnYae
 CawjHZJMIFLTfQClr59pg6SJDcvMohxskNU0d9HjIsWX7b63wPGqaVm+kv/yFDxE2ZW3c7F3fSE
 QjqXbM7NISIb6V0lmIVKHqj0fvdpWj+lhXQmGBYVTrc12KbCZGbEAGAA1SoOiH7ic=
X-Google-Smtp-Source: AGHT+IHpEr8pZb6KLQehtBRQA9aW5Kw4hl9lbKIy2u4O10W/N9Ij8Cd+ckgtUBSDMSOf6NDz6hgYQA==
X-Received: by 2002:a05:600c:1391:b0:41c:a9:26b3 with SMTP id
 u17-20020a05600c139100b0041c00a926b3mr2944978wmf.19.1714484725315; 
 Tue, 30 Apr 2024 06:45:25 -0700 (PDT)
Received: from guixrules.lan (lfbn-idf3-1-1143-125.w90-46.abo.wanadoo.fr.
 [90.46.90.125]) by smtp.gmail.com with ESMTPSA id
 n26-20020a05600c3b9a00b0041bf87e702asm11146566wms.10.2024.04.30.06.45.24
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 30 Apr 2024 06:45:24 -0700 (PDT)
From: Jean-Baptiste Note <jean-baptiste.note@HIDDEN>
To: 70672 <at> debbugs.gnu.org
Subject: ["PATCH core-updates" 1/1] gnu: python: Fix python's idle
 installation.
Date: Tue, 30 Apr 2024 13:44:59 +0000
Message-ID: <5f443c4e6f3ce7a489a8ab71e5d65b1fe7dd68c8.1714483770.git.jean-baptiste.note@HIDDEN>
X-Mailer: git-send-email 2.41.0
In-Reply-To: <cover.1714483770.git.jean-baptiste.note@HIDDEN>
References: <cover.1714483770.git.jean-baptiste.note@HIDDEN>
MIME-Version: 1.0
X-Debbugs-Cc: Lars-Dominik Braun <lars@HIDDEN>, Marius Bakke <marius@HIDDEN>,
 Munyoki Kilyungi <me@HIDDEN>,
 Sharlatan Hellseher <sharlatanus@HIDDEN>,
 Tanguy Le Carrour <tanguy@HIDDEN>, jgart <jgart@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 70672
Cc: Jean-Baptiste Note <jean-baptiste.note@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

* gnu/packages/python.scm (python-2.7): Fix idle output for python-2.7.
---
 gnu/packages/python.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b2757c651e..b41e75ed45 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -345,12 +345,15 @@ (define-public python-2.7
                       (install-file file (dirname target))
                       (delete-file file)))
                   (find-files (string-append out "/bin") "^idle"))
+                 ;; The idlelib directory is in OUT/lib/pythonX.Y, but we
+                 ;; want it under IDLE/lib/pythonX.Y/site-packages.
                  (match (find-files out "^idlelib$" #:directories? #t)
                    ((idlelib)
                     (let* ((len (string-length out))
                            (target (string-append idle "/"
-                                                  (string-drop idlelib len)
-                                                  "/site-packages")))
+                                                  (string-drop
+                                                   (dirname idlelib) len)
+                                                  "/site-packages/idlelib")))
                       (mkdir-p (dirname target))
                       (rename-file idlelib target))))))))
          (add-after 'move-idle 'rebuild-bytecode
-- 
2.41.0





Information forwarded to lars@HIDDEN, marius@HIDDEN, me@HIDDEN, sharlatanus@HIDDEN, tanguy@HIDDEN, jgart@HIDDEN, guix-patches@HIDDEN:
bug#70672; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Apr 2024 13:42:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 30 09:42:06 2024
Received: from localhost ([127.0.0.1]:59497 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s1nkE-0003bp-2N
	for submit <at> debbugs.gnu.org; Tue, 30 Apr 2024 09:42:06 -0400
Received: from lists.gnu.org ([2001:470:142::17]:37990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jean-baptiste.note.1999@HIDDEN>)
 id 1s1nk9-0003bS-TX
 for submit <at> debbugs.gnu.org; Tue, 30 Apr 2024 09:42:04 -0400
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 <jean-baptiste.note.1999@HIDDEN>)
 id 1s1njj-0005WO-C1
 for guix-patches@HIDDEN; Tue, 30 Apr 2024 09:41:35 -0400
Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1)
 (envelope-from <jean-baptiste.note.1999@HIDDEN>)
 id 1s1njh-0007A3-2J
 for guix-patches@HIDDEN; Tue, 30 Apr 2024 09:41:35 -0400
Received: by mail-lj1-x22b.google.com with SMTP id
 38308e7fff4ca-2dd6c160eaaso69601191fa.1
 for <guix-patches@HIDDEN>; Tue, 30 Apr 2024 06:41:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=m4x.org; s=gapps; t=1714484489; x=1715089289; darn=gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=qDIOjhFFwOQ/qY9HizZkaR1GN714e0r7+DxYY9wKb2g=;
 b=ZYAVAg+uvx41oy117imZcOEqTdR/bKAQNN7mx2lE51RmyF2lcVo4X//D8sDfhblZZj
 ++kKgU85z5idY9Gr0VoPhRS6NbvEfc3jXFMfEcEqRgx5QeIDAs2UhmysoTrXrJKyRuEr
 45W6XxnRPpregZMP1uxU4a56vP/VGqD1/ipG0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714484489; x=1715089289;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=qDIOjhFFwOQ/qY9HizZkaR1GN714e0r7+DxYY9wKb2g=;
 b=TXQbhazz/5KWANFTLKBeqhWZKBDpt7X3k68IBgYD7ufxbEp6SHHg09qqYZdKJoc6Hl
 rMEE9PlS7OKA8C6UvMW4Rfu2Bd5/ZDsoVYpaztHRdEmriZWtmrKurkaZUiJSHfUkFz5D
 crDMLmbxjqA2M11gmntX4H9RUQz4v+5TW8ne4m+MhlpP+ilogg3367r0F7LVICAWcuRA
 8Q/tPWWmp/FKdpKYxGABSlULMhZmwqbjDUWEEuZ94mxKdVfX2a4Yjwldk0wHfJqb0Qnq
 luCPEtHY9AXn9Lo5goC/Swf4zo4CCi0ShX8XhGCtsIxx9TmdCQUhGj14hfEao1Jnaeot
 Tdzw==
X-Gm-Message-State: AOJu0YxCyttoSCiFE85ncTdT8olB9lxZ16abAb6z9ZNgCrQ9IKzfw9Eu
 UzZtFkUezRzBdvy8de5GZK/wt1nESY3Em/yfUfcrn2NrsxUnRvRUQ1aKUQa6m+2glVz23AzQPvl
 9TLpf/KXNEVR4ZekkgjdzjfzJ+EAWLogB73jc6FoLeAHvMJ3LY2qKJiXct7fTV4/lcgDv1/y8Rg
 eqdBcfyUwz08ZHTKrGQUQVNYo4KCxcz/JaiDCPLDC0vJKHbiwrHC012bp8l+nvKg==
X-Google-Smtp-Source: AGHT+IFZushHH+qxj3t2WPUOaXsA0uuvxFm0drUy3yRBXh2bdbfl+uuaWko3tGwS9iBPAPuojPG+1A==
X-Received: by 2002:a2e:9792:0:b0:2d8:5e8b:7de4 with SMTP id
 y18-20020a2e9792000000b002d85e8b7de4mr10534174lji.6.1714484487348; 
 Tue, 30 Apr 2024 06:41:27 -0700 (PDT)
Received: from guixrules.lan
 (2a01cb0808d89bcce2cec3fffe74cec8.ipv6.abo.wanadoo.fr.
 [2a01:cb08:8d8:9bcc:e2ce:c3ff:fe74:cec8])
 by smtp.gmail.com with ESMTPSA id
 i4-20020a05600c354400b0041902ebc87esm41992965wmq.35.2024.04.30.06.41.26
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 30 Apr 2024 06:41:26 -0700 (PDT)
From: Jean-Baptiste Note <jean-baptiste.note@HIDDEN>
To: guix-patches@HIDDEN
Subject: ["PATCH core-updates" 0/1] Fix python package idle output
Date: Tue, 30 Apr 2024 13:41:14 +0000
Message-ID: <cover.1714483770.git.jean-baptiste.note@HIDDEN>
X-Mailer: git-send-email 2.41.0
MIME-Version: 1.0
X-Debbugs-Cc: Lars-Dominik Braun <lars@HIDDEN>, Marius Bakke <marius@HIDDEN>,
 Munyoki Kilyungi <me@HIDDEN>,
 Sharlatan Hellseher <sharlatanus@HIDDEN>,
 Tanguy Le Carrour <tanguy@HIDDEN>, jgart <jgart@HIDDEN>
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::22b;
 envelope-from=jean-baptiste.note.1999@HIDDEN;
 helo=mail-lj1-x22b.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
Cc: Jean-Baptiste Note <jean-baptiste.note@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

idle has been split from python and python2 packages to their own python:idle
and python2:idle outputs. Unfortunately however, the idlelib directory is not
installed properly to be picked up by GUIX_PYTHONPATH. I don't care much for
python idle, but is used by several good kid's boot about programming, so it's
probably better to have it working.

Please note that even then, python:idle requires pythonX:tk to be installed in
order to be able to run properly.

Jean-Baptiste Note (1):
  gnu: python: Fix python's idle installation.

 gnu/packages/python.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


-- 
2.41.0





Acknowledgement sent to Jean-Baptiste Note <jean-baptiste.note@HIDDEN>:
New bug report received and forwarded. Copy sent to lars@HIDDEN, marius@HIDDEN, me@HIDDEN, sharlatanus@HIDDEN, tanguy@HIDDEN, jgart@HIDDEN, guix-patches@HIDDEN. Full text available.
Report forwarded to lars@HIDDEN, marius@HIDDEN, me@HIDDEN, sharlatanus@HIDDEN, tanguy@HIDDEN, jgart@HIDDEN, guix-patches@HIDDEN:
bug#70672; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 14 May 2024 16:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.