gnu: python-on-guile: Wrap with own Guile modules.
* gnu/packages/guile-xyz.scm (python-on-guile)[arguments]: Add the output modules to the wrapper.
This commit is contained in:
parent
ac94458485
commit
862d6a9173
1 changed files with 19 additions and 4 deletions
|
@ -2602,13 +2602,28 @@ serializing continuations or delimited continuations.")
|
||||||
(add-after 'install 'wrap
|
(add-after 'install 'wrap
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Wrap the 'python' executable so it can find its
|
;; Wrap the 'python' executable so it can find its
|
||||||
;; dependencies.
|
;; dependencies and own modules.
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(guile-version ,(version-major+minor
|
||||||
|
(package-version guile-3.0)))
|
||||||
|
(scm (string-append out "/share/guile/site/"
|
||||||
|
guile-version))
|
||||||
|
(ccache (string-append out "/lib/guile/" guile-version
|
||||||
|
"/site-ccache"))
|
||||||
|
(load-path (string-join
|
||||||
|
(cons scm
|
||||||
|
;; XXX: cdr because we augment it above.
|
||||||
|
(cdr (string-split
|
||||||
|
(getenv "GUILE_LOAD_PATH") #\:)))
|
||||||
|
":"))
|
||||||
|
(compiled-path (string-append
|
||||||
|
ccache ":"
|
||||||
|
(getenv "GUILE_LOAD_COMPILED_PATH"))))
|
||||||
(wrap-program (string-append out "/bin/python")
|
(wrap-program (string-append out "/bin/python")
|
||||||
`("GUILE_LOAD_PATH" ":" prefix
|
`("GUILE_LOAD_PATH" ":" prefix
|
||||||
(,(getenv "GUILE_LOAD_PATH")))
|
(,load-path))
|
||||||
`("GUILE_LOAD_COMPILED_PATH" ":" prefix
|
`("GUILE_LOAD_COMPILED_PATH" ":" prefix
|
||||||
(,(getenv "GUILE_LOAD_COMPILED_PATH"))))
|
(,compiled-path)))
|
||||||
#t))))))
|
#t))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("guile" ,guile-3.0)))
|
`(("guile" ,guile-3.0)))
|
||||||
|
|
Reference in a new issue