[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
83/163: gnu: gimp: Use the new Guix PYTHONPATH.
From: |
guix-commits |
Subject: |
83/163: gnu: gimp: Use the new Guix PYTHONPATH. |
Date: |
Mon, 25 Jan 2021 02:01:38 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 6ce85c8947330101d3c2a96094e7cd53a5105350
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 23 22:48:32 2021 -0500
gnu: gimp: Use the new Guix PYTHONPATH.
* gnu/packages/gimp.scm (gimp)
[phases]{install-sitecustomize.py}: Use the new Guix PYTHONPATH.
---
gnu/packages/gimp.scm | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/gimp.scm b/gnu/packages/gimp.scm
index 4d229a1..ad19284 100644
--- a/gnu/packages/gimp.scm
+++ b/gnu/packages/gimp.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2018 Thorsten Wilms <t_w_@freenet.de>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
+;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -278,7 +279,12 @@ buffers.")
(outputs '("out"
"doc")) ; 9 MiB of gtk-doc HTML
(arguments
- '(#:configure-flags
+ '(#:imported-modules ,(cons '(guix build python-build-system)
+ %gnu-build-system-modules)
+ #:modules ((guix build gnu-build-system)
+ ((guix build python-build-system) #:select (guix-pythonpath))
+ (guix build utils))
+ #:configure-flags
(list (string-append "--with-html-dir="
(assoc-ref %outputs "doc")
"/share/gtk-doc/html")
@@ -299,8 +305,8 @@ buffers.")
(add-after 'install 'install-sitecustomize.py
;; Install 'sitecustomize.py' into gimp's python directory to
;; add pygobject and pygtk to pygimp's search path.
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((pythonpath (getenv "PYTHONPATH"))
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((pythonpath (guix-pythonpath inputs))
(out (assoc-ref outputs "out"))
(sitecustomize.py
(string-append
@@ -308,7 +314,8 @@ buffers.")
(call-with-output-file sitecustomize.py
(lambda (port)
(format port "import site~%")
- (format port "for dir in '~a'.split(':'):~%" pythonpath)
+ (format port "for dir in '~a'.split(':'):~%"
+ (getenv pythonpath))
(format port " site.addsitedir(dir)~%")))))))))
(inputs
`(("babl" ,babl)
- 56/163: gnu: python-django: Do not alter PYTHONPATH., (continued)
- 56/163: gnu: python-django: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 31/163: gnu: ganeti: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 51/163: gnu: scanmem: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 39/163: gnu: python-libtmux: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 60/163: gnu: python-django-sortedm2m: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 47/163: gnu: ceph: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 74/163: gnu: intel-xed: Update to 12.0.1., guix-commits, 2021/01/25
- 78/163: gnu: meson-0.55: Update to 0.55.3., guix-commits, 2021/01/25
- 102/163: gnu: asymptote: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 116/163: gnu: passwordsafe: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 83/163: gnu: gimp: Use the new Guix PYTHONPATH.,
guix-commits <=
- 117/163: gnu: terminator: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 76/163: gnu: fifengine: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 124/163: gnu: python-colorlog: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 118/163: gnu: setzer: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 135/163: gnu: python-multidict: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 134/163: gnu: python-matplotlib-documentation: Do not read PYTHONPATH., guix-commits, 2021/01/25
- 136/163: gnu: python2-backports-shutil-get-terminal-size: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 144/163: gnu: python-odfpy: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 145/163: gnu: python-natsort: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 146/163: gnu: python-validictory: Do not set PYTHONPATH., guix-commits, 2021/01/25