[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/163: gnu: bamm: Update following changes to the Python build system.
From: |
guix-commits |
Subject: |
17/163: gnu: bamm: Update following changes to the Python build system. |
Date: |
Mon, 25 Jan 2021 02:01:18 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit d27c795402bc7ae811f043b2fc6b46abeef53436
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jan 22 11:59:08 2021 -0500
gnu: bamm: Update following changes to the Python build system.
* gnu/packages/bioinformatics.scm (bamm): Delete trailing #t.
[phases]{check}: Override rather than delete phase. Remove trailing #t.
{post-install-check}: Delete phase.
{wrap-executable}: Also wrap with the new Guix PYTHONPATH.
---
gnu/packages/bioinformatics.scm | 46 ++++++++++++++---------------------------
1 file changed, 15 insertions(+), 31 deletions(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index b32a15a..d224d46 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -12,7 +12,7 @@
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
;;; Copyright © 2018, 2019, 2020 Mădălin Ionel Patrașcu
<madalinionel.patrascu@mdc-berlin.de>
-;;; Copyright © 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
@@ -208,8 +208,7 @@ structure of the predicted RNA.")
(snippet
`(begin
;; Delete bundled htslib.
- (delete-file-recursively "c/htslib-1.3.1")
- #t))))
+ (delete-file-recursively "c/htslib-1.3.1")))))
(build-system python-build-system)
(arguments
`(#:python ,python-2 ; BamM is Python 2 only.
@@ -229,37 +228,22 @@ structure of the predicted RNA.")
;; Use autogen so that 'configure' works.
(substitute* "autogen.sh" (("/bin/sh") sh))
(setenv "CONFIG_SHELL" sh)
- (invoke "./autogen.sh")))
- #t))
- (delete 'build)
- ;; Run tests after installation so compilation only happens once.
- (delete 'check)
- (add-after 'install 'wrap-executable
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (path (getenv "PATH")))
- (wrap-program (string-append out "/bin/bamm")
- `("PATH" ":" prefix (,path))))
- #t))
- (add-after 'wrap-executable 'post-install-check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (setenv "PATH"
- (string-append (assoc-ref outputs "out")
- "/bin:"
- (getenv "PATH")))
- (setenv "PYTHONPATH"
- (string-append
- (assoc-ref outputs "out")
- "/lib/python"
- (string-take (string-take-right
- (assoc-ref inputs "python") 5) 3)
- "/site-packages:"
- (getenv "PYTHONPATH")))
+ (invoke "./autogen.sh")))))
+ (delete 'build) ;the build loops otherwise
+ (replace 'check
+ (lambda _
;; There are 2 errors printed, but they are safe to ignore:
;; 1) [E::hts_open_format] fail to open file ...
;; 2) samtools view: failed to open ...
- (invoke "nosetests")
- #t)))))
+ (invoke "nosetests")))
+ (add-after 'install 'wrap-executable
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (path (getenv "PATH"))
+ (pythonpath (guix-pythonpath inputs)))
+ (wrap-program (string-append out "/bin/bamm")
+ `("PATH" ":" prefix (,path))
+ `(,pythonpath ":" prefix (,(getenv pythonpath))))))))))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)
- 77/163: gnu: meson: Update to 0.56.2., (continued)
- 77/163: gnu: meson: Update to 0.56.2., guix-commits, 2021/01/25
- 112/163: gnu: gnome-shell: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 106/163: gnu: gtg: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 111/163: gnu: caribou: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 80/163: gnu: gtk-doc: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 119/163: gnu: komikku: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 121/163: gnu: python-pathos: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 126/163: gnu: python-hdf4: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 20/163: gnu: gess: Adjust to use Guix PYTHONPATH., guix-commits, 2021/01/25
- 23/163: gnu: find-circ: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 17/163: gnu: bamm: Update following changes to the Python build system.,
guix-commits <=
- 28/163: gnu: python-cffi: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 46/163: gnu: avogadro: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 33/163: gnu: python-pyhamcrest: Update to 2.0.2., guix-commits, 2021/01/25
- 52/163: gnu: ibus: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 70/163: gnu: solfege: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 101/163: gnu: presentty: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 87/163: gnu: python-fenics-dijitso: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 96/163: gnu: entangle: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 85/163: gnu: units: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 84/163: gnu: glimpse: Use the new Guix PYTHONPATH., guix-commits, 2021/01/25