[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
26/131: gnu: bamm: Update following changes to the Python build system.
From: |
guix-commits |
Subject: |
26/131: gnu: bamm: Update following changes to the Python build system. |
Date: |
Mon, 1 Feb 2021 11:56:37 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 5e47bebf3b5df58ef23ee0355997de060de790eb
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 f7d6a6b..85aaeb3 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 (getenv "GUIX_PYTHONPATH")))
+ (wrap-program (string-append out "/bin/bamm")
+ `("PATH" ":" prefix (,path))
+ `("GUIX_PYTHONPATH" ":" prefix (,pythonpath)))))))))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)
- 05/131: build/python: Adjust wrap phase to use the new GUIX_PYTHONPATH., (continued)
- 05/131: build/python: Adjust wrap phase to use the new GUIX_PYTHONPATH., guix-commits, 2021/02/01
- 09/131: gnu: python-pytest-pep8: Fix package., guix-commits, 2021/02/01
- 16/131: gnu: python-twisted: Remove broken console scripts., guix-commits, 2021/02/01
- 04/131: build/python: Add the installation bin directory to PATH., guix-commits, 2021/02/01
- 11/131: gnu: python-slugify: Add missing input., guix-commits, 2021/02/01
- 12/131: gnu: python-websockets: Fix Python package name., guix-commits, 2021/02/01
- 07/131: gnu: python-pytest-xdist: Add missing input, relax pytest requirement., guix-commits, 2021/02/01
- 06/131: build/python: Add a sanity check phase., guix-commits, 2021/02/01
- 19/131: gnu: python-traceback2: Add missing dependency., guix-commits, 2021/02/01
- 23/131: gnu: intel-xed: Adjust build phase., guix-commits, 2021/02/01
- 26/131: gnu: bamm: Update following changes to the Python build system.,
guix-commits <=
- 25/131: gnu: python-pysam: Adjust following Python build system changes., guix-commits, 2021/02/01
- 03/131: build/python: Always add the install prefix to the Guix PYTHONPATH., guix-commits, 2021/02/01
- 02/131: build/python: Replace PYTHONPATH by GUIX_PYTHONPATH., guix-commits, 2021/02/01
- 08/131: gnu: python-fixtures-bootstrap: Do not sanity check., guix-commits, 2021/02/01
- 10/131: gnu: python-pyfakefs: Disable unreliable test, guix-commits, 2021/02/01
- 17/131: gnu: python-automat: Remove broken console script., guix-commits, 2021/02/01
- 14/131: gnu: python-traitlets: Add missing input., guix-commits, 2021/02/01
- 20/131: gnu: python2-packaging-bootstrap: Add missing dependency, guix-commits, 2021/02/01
- 27/131: gnu: python-screed: Adjust following Python build system changes., guix-commits, 2021/02/01
- 28/131: gnu: python-scanpy: Do not set PYTHONPATH., guix-commits, 2021/02/01