* [bug#57413] [PATCH] gnu: snakemake-7: Fix cluster execution bug
@ 2022-08-25 18:17 Konrad Hinsen
2022-08-29 16:10 ` bug#57413: " Marius Bakke
0 siblings, 1 reply; 2+ messages in thread
From: Konrad Hinsen @ 2022-08-25 18:17 UTC (permalink / raw)
To: 57413
* gnu/packages/python-xyz.scm (snakemake-7): Revise the patch for
the cluster execution script
---
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 f7971b75fa..cb3eba77aa 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9784,15 +9784,14 @@ (define-public snakemake-7
;; 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?
--
2.37.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#57413: [PATCH] gnu: snakemake-7: Fix cluster execution bug
2022-08-25 18:17 [bug#57413] [PATCH] gnu: snakemake-7: Fix cluster execution bug Konrad Hinsen
@ 2022-08-29 16:10 ` Marius Bakke
0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2022-08-29 16:10 UTC (permalink / raw)
To: Konrad Hinsen, 57413-done
[-- Attachment #1: Type: text/plain, Size: 170 bytes --]
Konrad Hinsen <konrad.hinsen@fastmail.net> skriver:
> * gnu/packages/python-xyz.scm (snakemake-7): Revise the patch for
> the cluster execution script
Applied, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-29 16:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-25 18:17 [bug#57413] [PATCH] gnu: snakemake-7: Fix cluster execution bug Konrad Hinsen
2022-08-29 16:10 ` bug#57413: " Marius Bakke
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.