[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
49/163: gnu: cups: Wrap with the new Guix PYTHONPATH.
From: |
guix-commits |
Subject: |
49/163: gnu: cups: Wrap with the new Guix PYTHONPATH. |
Date: |
Mon, 25 Jan 2021 02:01:28 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 4c16044fbe4ff1681dfca76f2534a4ac46b98831
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jan 22 23:48:46 2021 -0500
gnu: cups: Wrap with the new Guix PYTHONPATH.
* gnu/packages/cups.scm (cups): Delete trailing #t.
[phases]{wrap-binaries}: Use the new Guix PYTHONPATH.
---
gnu/packages/cups.scm | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index f2b78e3..984d128 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2017 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -445,8 +446,7 @@ should only be used as part of the Guix cups-pk-helper
service.")
(("^dat2drvdir =.*")
"dat2drvdir = $(pkglibexecdir)\n")
(("^locatedriverdir =.*")
- "locatedriverdir = $(pkglibexecdir)\n"))
- #t))))
+ "locatedriverdir = $(pkglibexecdir)\n"))))))
(build-system gnu-build-system)
(outputs (list "out" "ppd"))
(home-page "https://developers.hp.com/hp-linux-imaging-and-printing")
@@ -534,8 +534,7 @@ should only be used as part of the Guix cups-pk-helper
service.")
(string-append "rulessystemdir = " out
"/lib/systemd/system"))
(("/etc/sane.d")
- (string-append out "/etc/sane.d")))
- #t)))
+ (string-append out "/etc/sane.d"))))))
(add-before 'configure 'fix-build-with-python-3.8
(lambda* (#:key inputs #:allow-other-keys)
(let ((python (assoc-ref inputs "python")))
@@ -546,15 +545,13 @@ should only be used as part of the Guix cups-pk-helper
service.")
(setenv "C_INCLUDE_PATH"
(string-append python "/include/python"
(python:python-version python)
- ":" (getenv "C_INCLUDE_PATH"))))
- #t)))
+ ":" (getenv "C_INCLUDE_PATH")))))))
(add-after 'install 'install-models-dat
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(models-dir (string-append out
"/share/hplip/data/models")))
- (install-file "data/models/models.dat" models-dir))
- #t))
+ (install-file "data/models/models.dat" models-dir))))
(add-after 'install 'wrap-binaries
;; Scripts in /bin are all symlinks to .py files in /share/hplip.
;; Symlinks are immune to the Python build system's 'WRAP phase,
@@ -565,7 +562,8 @@ should only be used as part of the Guix cups-pk-helper
service.")
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
- (python (assoc-ref inputs "python")))
+ (python (assoc-ref inputs "python"))
+ (pythonpath (python:guix-pythonpath inputs)))
(with-directory-excursion bin
(for-each (lambda (file)
(let ((target (readlink file)))
@@ -574,19 +572,19 @@ should only be used as part of the Guix cups-pk-helper
service.")
(lambda _
(format #t
"#!~a~@
- export PYTHONPATH=\"~a:~a\"~@
+ export ~a=\"~a:~a\"~@
exec -a \"$0\" \"~a/~a\" \"$@\"~%"
(which "bash")
+ pythonpath
(string-append
out "/lib/python"
(python:python-version python)
"/site-packages")
- (getenv "PYTHONPATH")
+ (getenv pythonpath)
bin target)))
(chmod file #o755)))
(find-files "." (lambda (file stat)
- (eq? 'symlink (stat:type stat)))))
- #t)))))))
+ (eq? 'symlink (stat:type stat))))))))))))
;; Note that the error messages printed by the tools in the case of
;; missing dependencies are often downright misleading.
- 67/163: gnu: freecad: Wrap with the new Guix PYTHONPATH., (continued)
- 67/163: gnu: freecad: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 61/163: gnu: python-django-appconf: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 40/163: gnu: manuskript: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 72/163: gnu: python-hyperkitty: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 79/163: gnu: gdk-pixbuf: Update to 2.42.2., guix-commits, 2021/01/25
- 142/163: gnu: python-libcst: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 140/163: gnu: python-tblib: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 158/163: gnu: python-jsonpickle: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 159/163: gnu: python-databricks-cli: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 161/163: gnu: python-flask-wtf: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 49/163: gnu: cups: Wrap with the new Guix PYTHONPATH.,
guix-commits <=
- 75/163: gnu: roguebox-adventures: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 89/163: gnu: python-fenics-fiat: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 105/163: gnu: gnome-music: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 93/163: gnu: byobu: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 99/163: gnu: pagekit: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 98/163: gnu: blueman: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 91/163: gnu: python-fenics-ffc: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 95/163: gnu: rapid-photo-downloader: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 129/163: gnu: python-jsonschema: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 128/163: gnu: python-click: Do not set PYTHONPATH., guix-commits, 2021/01/25