[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
47/163: gnu: ceph: Wrap with the new Guix PYTHONPATH.
From: |
guix-commits |
Subject: |
47/163: gnu: ceph: Wrap with the new Guix PYTHONPATH. |
Date: |
Mon, 25 Jan 2021 02:01:27 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 778ff2976117bebcb9336b233723f3ab2140a8e9
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jan 22 23:39:40 2021 -0500
gnu: ceph: Wrap with the new Guix PYTHONPATH.
* gnu/packages/storage.scm (ceph): Delete trailing #t.
[phases]{set-install-environment}: Streamline.
{wrap-python-scripts}: Use the new Guix PYTHONPATH.
---
gnu/packages/storage.scm | 32 ++++++++++++++------------------
1 file changed, 14 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/storage.scm b/gnu/packages/storage.scm
index d53327d..61dc435 100644
--- a/gnu/packages/storage.scm
+++ b/gnu/packages/storage.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -82,11 +83,15 @@
"src/rapidjson"
"src/spdk"
"src/rocksdb"
- "src/boost"))
- #t))))
+ "src/boost"))))))
(build-system cmake-build-system)
(arguments
`(#:configure-flags
+ #: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))
(let* ((out (assoc-ref %outputs "out"))
(lib (assoc-ref %outputs "lib"))
(libdir (string-append lib "/lib")))
@@ -159,22 +164,14 @@
(string-append out "/bin/ceph-rbdnamer")))
#t)))
(add-before 'install 'set-install-environment
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (py3sitedir
- (string-append out "/lib/python"
- ,(version-major+minor
- (package-version python))
- "/site-packages")))
- ;; The Python install scripts refuses to function if
- ;; the install directory is not on PYTHONPATH.
- (setenv "PYTHONPATH"
- (string-append py3sitedir ":"
- (getenv "PYTHONPATH")))
- #t)))
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ ;; The Python install scripts refuses to function if
+ ;; the install directory is not on PYTHONPATH.
+ (setenv "PYTHONPATH" (site-packages inputs outputs))))
(add-after 'install 'wrap-python-scripts
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
+ (pythonpath (guix-pythonpath inputs))
(scripts '("ceph" "ceph-mgr" "ceph-volume"))
(prettytable (assoc-ref inputs "python-prettytable"))
(six (assoc-ref inputs "python-six"))
@@ -190,9 +187,8 @@
(sitedir prettytable))))
(for-each (lambda (executable)
(wrap-program (string-append out "/bin/" executable)
- `("PYTHONPATH" ":" prefix (,PYTHONPATH))))
- scripts)
- #t))))))
+ `(,pythonpath ":" prefix (,PYTHONPATH))))
+ scripts)))))))
(outputs
'("out" "lib"))
(native-inputs
- 14/163: gnu: fio: Adjust for the new Guix PYTHONPATH., (continued)
- 14/163: gnu: fio: Adjust for the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 12/163: gnu: jack2: Adjust build phase., guix-commits, 2021/01/25
- 15/163: gnu: python-pybedtools: Streamline following Python build system changes., guix-commits, 2021/01/25
- 30/163: gnu: linkchecker: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 34/163: gnu: pitivi: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 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 <=
- 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, 2021/01/25
- 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