mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: scribus: Fix No module named _sysconfigdata_nd.
* gnu/packages/scribus.scm (scribus): Wrap PATH with expected Python around executable. Fixes <https://bugs.gnu.org/25035>.
This commit is contained in:
parent
92be9ee7e1
commit
aa6ae8d324
1 changed files with 13 additions and 1 deletions
|
@ -81,7 +81,19 @@ (define-public scribus
|
|||
(arguments
|
||||
`(#:tests? #f ;no test target
|
||||
#:configure-flags
|
||||
'("-DWANT_GRAPHICSMAGICK=1")))
|
||||
'("-DWANT_GRAPHICSMAGICK=1")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'wrap-program
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
;; Fix "ImportError: No module named _sysconfigdata_nd" where
|
||||
;; Scribus checks PATH and eventually runs system's Python
|
||||
;; instead of package's.
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(py2 (assoc-ref inputs "python")))
|
||||
(wrap-program (string-append out "/bin/scribus")
|
||||
`("PATH" ":" prefix (,(string-append py2 "/bin")))))
|
||||
#t)))))
|
||||
(inputs
|
||||
`(("boost" ,boost)
|
||||
("cairo" ,cairo)
|
||||
|
|
Loading…
Reference in a new issue