[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: gnu: snakemake-7: Fix cluster execution bug
From: |
guix-commits |
Subject: |
05/07: gnu: snakemake-7: Fix cluster execution bug |
Date: |
Mon, 29 Aug 2022 12:23:51 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 5831155175614726685edab7efa60ce48e4da1f5
Author: Konrad Hinsen <konrad.hinsen@fastmail.net>
AuthorDate: Thu Aug 25 20:17:55 2022 +0200
gnu: snakemake-7: Fix cluster execution bug
* gnu/packages/python-xyz.scm (snakemake-7)[arguments]: Revise the patch for
the cluster execution script
Signed-off-by: Marius Bakke <marius@gnu.org>
---
gnu/packages/python-xyz.scm | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 30645fc4a0..0accf918ee 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9739,15 +9739,14 @@ Python style, together with a fast and comfortable
execution environment.")
;; For cluster execution Snakemake will call Python. Since there is
;; no suitable GUIX_PYTHONPATH set, cluster execution will fail. We
;; fix this by calling the snakemake wrapper instead.
-
- ;; XXX: There is another instance of sys.executable on line 692, but
- ;; it is not clear how to patch it.
(add-after 'unpack 'call-wrapper-not-wrapped-snakemake
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "snakemake/executors/__init__.py"
- (("\\{sys.executable\\} -m snakemake")
- (string-append (assoc-ref outputs "out")
- "/bin/snakemake")))))
+ (("self\\.get_python_executable\\(\\),")
+ "")
+ (("\"-m snakemake\"")
+ (string-append "\"" (assoc-ref outputs "out")
+ "/bin/snakemake" "\"")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
- branch master updated (6e83d294ce -> 9529384c92), guix-commits, 2022/08/29
- 02/07: gnu: rr: Update to 5.6.0., guix-commits, 2022/08/29
- 04/07: gnu: gnupg: Use mirror URL., guix-commits, 2022/08/29
- 05/07: gnu: snakemake-7: Fix cluster execution bug,
guix-commits <=
- 01/07: gnu: Add python-django-cleanup., guix-commits, 2022/08/29
- 03/07: gnu: uncrustify: Update to 0.75.1., guix-commits, 2022/08/29
- 06/07: gnu: snakemake-6: Convert dependencies to propagated-inputs, guix-commits, 2022/08/29
- 07/07: gnu: snakemake-7: Convert dependencies to propagated-inputs, guix-commits, 2022/08/29