[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#54876] [PATCH] gnu: sbcl-py4cl: Fix path to python3.
From: |
Paul A. Patience |
Subject: |
[bug#54876] [PATCH] gnu: sbcl-py4cl: Fix path to python3. |
Date: |
Tue, 12 Apr 2022 02:55:35 +0000 |
* gnu/packages/lisp-xyz.scm (sbcl-py4cl)[arguments]: Add the
'fix-python3-path phase which sets py4cl:*python-command* to the
absolute path to python3.
---
gnu/packages/lisp-xyz.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 358bba4e89..10a46d4b9a 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -5180,6 +5180,12 @@ (define-public sbcl-py4cl
(arguments
'(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'fix-python3-path
+ (lambda _
+ (substitute* "src/callpython.lisp"
+ (("\\*python-command\\* \"python\"")
+ (string-append "*python-command* "
+ "\"" (which "python3") "\"")))))
(add-after 'unpack 'replace-*base-directory*-var
(lambda* (#:key outputs #:allow-other-keys)
;; In the ASD, the author makes an attempt to
--
2.35.1
- [bug#54876] [PATCH] gnu: sbcl-py4cl: Fix path to python3.,
Paul A. Patience <=