[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
109/163: gnu: d-feet: Wrap with the new Guix PYTHONPATH.
From: |
guix-commits |
Subject: |
109/163: gnu: d-feet: Wrap with the new Guix PYTHONPATH. |
Date: |
Mon, 25 Jan 2021 02:01:46 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit e8c16b73d26e902bc8e25dc81a5f5c0039dfbede
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Jan 24 00:02:23 2021 -0500
gnu: d-feet: Wrap with the new Guix PYTHONPATH.
* gnu/packages/gnome.scm (d-feet): Delete trailing #t.
[arguments]: Import and use the (guix build python-build-system) module.
[phases]{wrap-program}: Wrap with the new Guix PYTHONPATH.
---
gnu/packages/gnome.scm | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index eb77148..a5fba0d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -6680,7 +6680,12 @@ principles are simplicity and standards compliance.")
"1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
(build-system glib-or-gtk-build-system)
(arguments
- '(#:out-of-source? #f ; tests need to run in the source directory.
+ '(#:imported-modules ,(cons '(guix build python-build-system)
+ %glib-or-gtk-build-system-modules)
+ #:modules ((guix build glib-or-gtk-build-system)
+ ((guix build python-build-system) #:select (guix-pythonpath))
+ (guix build utils))
+ #:out-of-source? #f ; tests need to run in the source directory.
#:phases
(modify-phases %standard-phases
(add-before
@@ -6694,17 +6699,16 @@ principles are simplicity and standards compliance.")
;; tests.py and window.py don't meet E402:
;; E402 module level import not at top of file
(substitute* "src/tests/Makefile"
- (("--ignore=E123") "--ignore=E123,E402"))
- #t))
+ (("--ignore=E123") "--ignore=E123,E402"))))
(add-after
'install 'wrap-program
- (lambda* (#:key outputs #:allow-other-keys)
+ (lambda* (#:key inputs outputs #:allow-other-keys)
(let ((prog (string-append (assoc-ref outputs "out")
- "/bin/d-feet")))
+ "/bin/d-feet"))
+ (pythonpath (guix-pythonpath inputs)))
(wrap-program prog
- `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
- `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
- #t))))))
+ `(,pythonpath = (,(getenv pythonpath)))
+ `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))))))))
(native-inputs
`(("intltool" ,intltool)
("itstool" ,itstool)
- 65/163: gnu: kicad: Wrap with the new Guix PYTHONPATH., (continued)
- 65/163: gnu: kicad: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 62/163: gnu: python-django-statici18n: Do not read PYTHONPATH., guix-commits, 2021/01/25
- 35/163: gnu: gitless: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 41/163: gnu: blanket: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 71/163: gnu: notifymuch: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 97/163: gnu: 389-ds-base: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 104/163: gnu: python-pynacl: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 90/163: gnu: python-fenics-ffc: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 81/163: gnu: kajongg: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 110/163: gnu: gedit: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 109/163: gnu: d-feet: Wrap with the new Guix PYTHONPATH.,
guix-commits <=
- 77/163: gnu: meson: Update to 0.56.2., guix-commits, 2021/01/25
- 112/163: gnu: gnome-shell: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 106/163: gnu: gtg: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 111/163: gnu: caribou: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 80/163: gnu: gtk-doc: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 119/163: gnu: komikku: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 121/163: gnu: python-pathos: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 126/163: gnu: python-hdf4: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 20/163: gnu: gess: Adjust to use Guix PYTHONPATH., guix-commits, 2021/01/25
- 23/163: gnu: find-circ: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25