[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
51/131: gnu: fifengine: Do not alter PYTHONPATH.
From: |
guix-commits |
Subject: |
51/131: gnu: fifengine: Do not alter PYTHONPATH. |
Date: |
Fri, 29 Jan 2021 09:21:56 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit fd3f9a5fed51bf2b4454ce569f737b56238568de
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 23 21:16:39 2021 -0500
gnu: fifengine: Do not alter PYTHONPATH.
* gnu/packages/games.scm (fifengine): Import the (guix build
python-build-system) module.
[phases]{check}: Simplify by using the 'add-installed-pythonpath' procedure.
Remove trailing #t.
---
gnu/packages/games.scm | 28 ++++++++--------------------
1 file changed, 8 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 1f9d784..b059c52 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3445,9 +3445,12 @@ Widgets, and allows users to create more.")
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; TODO The test running fails to run some tests.
- #:modules ((srfi srfi-1)
- (guix build cmake-build-system)
- (guix build utils))
+ #:imported-modules ,(cons '(guix build python-build-system)
+ %cmake-build-system-modules)
+ #:modules ((guix build cmake-build-system)
+ ((guix build python-build-system) #:select (guix-pythonpath))
+ (guix build utils)
+ (srfi srfi-1))
#:configure-flags
(list
(string-append "-DOPENALSOFT_INCLUDE_DIR="
@@ -3474,30 +3477,15 @@ Widgets, and allows users to create more.")
(delete 'check)
(add-after 'install 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (define python-version
- (let* ((version (last (string-split
- (assoc-ref inputs "python")
- #\-)))
- (components (string-split version #\.))
- (major+minor (take components 2)))
- (string-join major+minor ".")))
-
(when tests?
- ;; Set PYTHONPATH so that python finds the installed modules.
- (setenv "PYTHONPATH"
- (string-append (getenv "PYTHONPATH") ":"
- (assoc-ref outputs "out")
- "/lib/python"
- python-version
- "/site-packages"))
+ (add-installed-pythonpath inputs outputs)
;; The tests require an X server.
(system "Xvfb :1 &")
(setenv "DISPLAY" ":1")
(setenv "XDG_RUNTIME_DIR" "/tmp")
;; Run tests
(chdir ,(string-append "../" name "-" version))
- (invoke "python3" "run_tests.py" "-a"))
- #t)))))
+ (invoke "python3" "run_tests.py" "-a")))))))
(inputs
`(("sdl2" ,sdl2)
("sdl2-image" ,sdl2-image)
- 46/131: gnu: python-django-statici18n: Do not read PYTHONPATH., (continued)
- 46/131: gnu: python-django-statici18n: Do not read PYTHONPATH., guix-commits, 2021/01/29
- 49/131: gnu: python-hyperkitty: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 43/131: gnu: python-django-pipeline: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 57/131: gnu: python-fenics-fiat: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 50/131: gnu: intel-xed: Update to 12.0.1., guix-commits, 2021/01/29
- 59/131: gnu: python-fenics-ffc: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 65/131: gnu: python-attrs: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 60/131: gnu: fenics: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 74/131: gnu: python-jsonschema: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 36/131: gnu: python-libtmux: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 51/131: gnu: fifengine: Do not alter PYTHONPATH.,
guix-commits <=
- 52/131: gnu: meson: Update to 0.56.2., guix-commits, 2021/01/29
- 53/131: gnu: meson-0.55: Update to 0.55.3., guix-commits, 2021/01/29
- 69/131: gnu: python-colorlog: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 72/131: gnu: python-aenum: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 41/131: gnu: python-pytest-django: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 47/131: gnu: python-django-url-filter: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 48/131: gnu: graphite2: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 54/131: gnu: gdk-pixbuf: Update to 2.42.2., guix-commits, 2021/01/29
- 55/131: gnu: python-fenics-dijitso: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 67/131: gnu: python-stone: Do not set PYTHONPATH., guix-commits, 2021/01/29