unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#70672] ["PATCH core-updates" 0/1] Fix python package idle output
@ 2024-04-30 13:41 Jean-Baptiste Note
  2024-04-30 13:44 ` [bug#70672] ["PATCH core-updates" 1/1] gnu: python: Fix python's idle installation Jean-Baptiste Note
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Baptiste Note @ 2024-04-30 13:41 UTC (permalink / raw)
  To: 70672
  Cc: Jean-Baptiste Note, Lars-Dominik Braun, Marius Bakke,
	Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [bug#70672] ["PATCH core-updates" 1/1] gnu: python: Fix python's idle installation.
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Jean-Baptiste Note @ 2024-04-30 13:44 UTC (permalink / raw)
  To: 70672
  Cc: Jean-Baptiste Note, Lars-Dominik Braun, Marius Bakke,
	Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart

* 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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-30 13:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [bug#70672] ["PATCH core-updates" 1/1] gnu: python: Fix python's idle installation Jean-Baptiste Note

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).