[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/24: gnu: ganeti: Add the output directory on GUIX_PYTHONPATH.
From: |
guix-commits |
Subject: |
15/24: gnu: ganeti: Add the output directory on GUIX_PYTHONPATH. |
Date: |
Sun, 5 Dec 2021 08:16:27 -0500 (EST) |
mbakke pushed a commit to branch core-updates-frozen
in repository guix.
commit d801827b846d9cde9e93797c20600651697b111a
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu Dec 2 20:23:48 2021 +0100
gnu: ganeti: Add the output directory on GUIX_PYTHONPATH.
This is a follow-up to commit 1ed567c8721ec2810fdb70f1c6fc8396a705d503.
* gnu/packages/virtualization.scm (ganeti)[arguments]: Adjust wrap phase to
include Ganetis own site-packages on $GUIX_PYTHONPATH.
---
gnu/packages/virtualization.scm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index 366187d..41a55ba 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -529,6 +529,7 @@ firmware blobs. You can
(guix build python-build-system))
#:modules (,@%gnu-build-system-modules
((guix build haskell-build-system) #:prefix haskell:)
+ ((guix build python-build-system) #:select (site-packages))
(srfi srfi-1)
(srfi srfi-26)
(ice-9 match)
@@ -742,10 +743,12 @@ firmware blobs. You can
;; the phase from python-build-system because we also need to wrap
;; the scripts in $out/lib/ganeti such as "node-daemon-setup".
(add-after 'install 'wrap
- (lambda* (#:key outputs #:allow-other-keys)
+ (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(sbin (string-append out "/sbin"))
- (lib (string-append out "/lib")))
+ (lib (string-append out "/lib"))
+ (PYTHONPATH (string-append (site-packages inputs outputs)
+ ":" (getenv
"GUIX_PYTHONPATH"))))
(define (shell-script? file)
(call-with-ascii-input-file file
(lambda (port)
@@ -767,7 +770,7 @@ firmware blobs. You can
(for-each (lambda (file)
(wrap-program file
`("GUIX_PYTHONPATH" ":" prefix
- (,(getenv "GUIX_PYTHONPATH")))))
+ (,PYTHONPATH))))
(append-map (cut find-files <> wrap?)
(list (string-append lib "/ganeti")
sbin)))))))))
- branch core-updates-frozen updated (f849081 -> c61e49a), guix-commits, 2021/12/05
- 02/24: gnu: python-fakeredis: Update to 1.7.0., guix-commits, 2021/12/05
- 01/24: gnu: Django packages propagate Django, after all., guix-commits, 2021/12/05
- 09/24: gnu: python-django-logging-json: Disable sanity check., guix-commits, 2021/12/05
- 03/24: gnu: python-django-haystack: Disable sanity check., guix-commits, 2021/12/05
- 04/24: gnu: python-django-jinja: Update to 2.9.1., guix-commits, 2021/12/05
- 08/24: gnu: python-django-appconf: Fix tests., guix-commits, 2021/12/05
- 05/24: gnu: python-django-contact-form: Update to 1.9., guix-commits, 2021/12/05
- 07/24: gnu: python-django-pipeline: Fix tests., guix-commits, 2021/12/05
- 15/24: gnu: ganeti: Add the output directory on GUIX_PYTHONPATH.,
guix-commits <=
- 20/24: gnu: python-mailman-hyperkitty: Update to 1.2.0., guix-commits, 2021/12/05
- 17/24: gnu: python-django-haystack: Update to 3.1.1., guix-commits, 2021/12/05
- 21/24: gnu: python-whisper: Update to 1.1.8., guix-commits, 2021/12/05
- 11/24: gnu: python-django-url-filter: Adjust phase order., guix-commits, 2021/12/05
- 19/24: gnu: python-hyperkitty: Update to 1.3.5., guix-commits, 2021/12/05
- 24/24: gnu: tbb: Update to 2021.4.0., guix-commits, 2021/12/05
- 16/24: gnu: python-alembic: Update to 1.7.5., guix-commits, 2021/12/05
- 18/24: gnu: Add python-mistune-next., guix-commits, 2021/12/05
- 14/24: gnu: python-webassets: Patch for Python 3.9., guix-commits, 2021/12/05
- 06/24: gnu: python-django-sortedm2m: Fix tests., guix-commits, 2021/12/05