[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/18: python-build-system: Look up the interpreter in 'inputs'.
From: |
guix-commits |
Subject: |
04/18: python-build-system: Look up the interpreter in 'inputs'. |
Date: |
Fri, 4 Jun 2021 17:29:21 -0400 (EDT) |
civodul pushed a commit to branch core-updates
in repository guix.
commit 5b24cbee312586aedbd48fbe13ee14191801f099
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Tue Jun 1 21:48:44 2021 +0200
python-build-system: Look up the interpreter in 'inputs'.
* guix/build/python-build-system.scm (wrap): Pass the shell
interpreter from 'inputs' to 'wrap-program' using 'search-input-file'.
Partially-Fixes: <https://issues.guix.gnu.org/47869>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
guix/build/python-build-system.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/guix/build/python-build-system.scm
b/guix/build/python-build-system.scm
index 5b1339d..08871f6 100644
--- a/guix/build/python-build-system.scm
+++ b/guix/build/python-build-system.scm
@@ -10,6 +10,7 @@
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2021 Lars-Dominik Braun <lars@6xq.net>
+;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -234,12 +235,18 @@ running checks after installing the package."
(string-append dir "/sbin"))))
outputs))
+ ;; Do not require "bash" to be present in the package inputs
+ ;; even when there is nothing to wrap.
+ ;; Also, calculate (sh) only once to prevent some I/O.
+ (define %sh (delay (search-input-file inputs "bin/bash")))
+ (define (sh) (force %sh))
+
(let* ((var `("GUIX_PYTHONPATH" prefix
,(search-path-as-string->list
(or (getenv "GUIX_PYTHONPATH") "")))))
(for-each (lambda (dir)
(let ((files (list-of-files dir)))
- (for-each (cut wrap-program <> var)
+ (for-each (cut wrap-program <> #:sh (sh) var)
files)))
bindirs)))
- branch core-updates updated (0fdf2cd -> d1827d5), guix-commits, 2021/06/04
- 01/18: utils: Allow overriding the shell interpreter in ‘wrap-program’., guix-commits, 2021/06/04
- 02/18: utils: Define ‘search-input-file’ procedure., guix-commits, 2021/06/04
- 03/18: glib-or-gtk-build-system: Look up the interpreter in 'inputs'., guix-commits, 2021/06/04
- 05/18: qt-build-system: Look up the interpreter in 'inputs'., guix-commits, 2021/06/04
- 11/18: gnu: gess: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 08/18: gnu: bats: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 10/18: gnu: prinseq: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 06/18: rakudo-build-system: Look up the interpreter in 'inputs'., guix-commits, 2021/06/04
- 04/18: python-build-system: Look up the interpreter in 'inputs'.,
guix-commits <=
- 07/18: gnu: carla: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 09/18: gnu: proteinortho: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 12/18: gnu: nanopolish: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 13/18: gnu: sieve-connect: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 15/18: gnu: vpnc-scripts: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 16/18: gnu: openconnect-sso: Set #:sh argument of 'wrap-program'., guix-commits, 2021/06/04
- 17/18: gnu: protonvpn-cli: Set #:sh argument of 'wrap-program'., guix-commits, 2021/06/04
- 18/18: gnu: wireguard-tools: Set #:sh argument of 'wrap-program'., guix-commits, 2021/06/04
- 14/18: gnu: clipmenu: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04