mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
gnu: python-ipykernel: Record absolute file name of 'python'.
* gnu/packages/python-xyz.scm (python-ipykernel)[arguments]: Add 'set-python-file-name' phase.
This commit is contained in:
parent
dcc773e560
commit
aa856d02b8
1 changed files with 11 additions and 1 deletions
|
@ -5157,7 +5157,17 @@ (define-public python-ipykernel
|
|||
(lambda _
|
||||
(setenv "HOME" "/tmp")
|
||||
(invoke "pytest" "-v")
|
||||
#t)))))
|
||||
#t))
|
||||
(add-after 'install 'set-python-file-name
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; Record the absolute file name of the 'python' executable in
|
||||
;; 'kernel.json'.
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(substitute* (string-append out "/share/jupyter"
|
||||
"/kernels/python3/kernel.json")
|
||||
(("\"python\"")
|
||||
(string-append "\"" (which "python") "\"")))
|
||||
#t))))))
|
||||
(propagated-inputs
|
||||
`(("python-ipython" ,python-ipython)
|
||||
;; imported at runtime during connect
|
||||
|
|
Loading…
Reference in a new issue