unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean-Baptiste Note <jean-baptiste.note@m4x.org>
To: 70672@debbugs.gnu.org
Cc: Jean-Baptiste Note <jean-baptiste.note@m4x.org>,
	Lars-Dominik Braun <lars@6xq.net>, Marius Bakke <marius@gnu.org>,
	Munyoki Kilyungi <me@bonfacemunyoki.com>,
	Sharlatan Hellseher <sharlatanus@gmail.com>,
	Tanguy Le Carrour <tanguy@bioneland.org>,
	jgart <jgart@dismail.de>
Subject: [bug#70672] ["PATCH core-updates" 1/1] gnu: python: Fix python's idle installation.
Date: Tue, 30 Apr 2024 13:44:59 +0000	[thread overview]
Message-ID: <5f443c4e6f3ce7a489a8ab71e5d65b1fe7dd68c8.1714483770.git.jean-baptiste.note@m4x.org> (raw)
In-Reply-To: <cover.1714483770.git.jean-baptiste.note@m4x.org>

* 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





      reply	other threads:[~2024-04-30 13:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-30 13:41 [bug#70672] ["PATCH core-updates" 0/1] Fix python package idle output Jean-Baptiste Note
2024-04-30 13:44 ` Jean-Baptiste Note [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5f443c4e6f3ce7a489a8ab71e5d65b1fe7dd68c8.1714483770.git.jean-baptiste.note@m4x.org \
    --to=jean-baptiste.note@m4x.org \
    --cc=70672@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    --cc=lars@6xq.net \
    --cc=marius@gnu.org \
    --cc=me@bonfacemunyoki.com \
    --cc=sharlatanus@gmail.com \
    --cc=tanguy@bioneland.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).