gnu: gimp: Fix python plugin.
* gnu/packages/gimp.scm (gimp)[arguments]: Add phase to install 'sitecustomize.py'.
This commit is contained in:
parent
a7f05b4192
commit
580dfc3329
|
@ -141,7 +141,23 @@ buffers.")
|
||||||
(arguments
|
(arguments
|
||||||
'(#:configure-flags (list (string-append "--with-html-dir="
|
'(#:configure-flags (list (string-append "--with-html-dir="
|
||||||
(assoc-ref %outputs "doc")
|
(assoc-ref %outputs "doc")
|
||||||
"/share/gtk-doc/html"))))
|
"/share/gtk-doc/html"))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'install-sitecustomize.py
|
||||||
|
;; Install 'sitecustomize.py' into gimp's python directory to
|
||||||
|
;; add pygobject and pygtk to pygimp's search path.
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((pythonpath (getenv "PYTHONPATH"))
|
||||||
|
(out (assoc-ref outputs "out"))
|
||||||
|
(sitecustomize.py
|
||||||
|
(string-append
|
||||||
|
out "/lib/gimp/2.0/python/sitecustomize.py")))
|
||||||
|
(call-with-output-file sitecustomize.py
|
||||||
|
(lambda (port)
|
||||||
|
(format port "import site~%")
|
||||||
|
(format port "for dir in '~a'.split(':'):~%" pythonpath)
|
||||||
|
(format port " site.addsitedir(dir)~%")))))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("babl" ,babl)
|
`(("babl" ,babl)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
|
|
Loading…
Reference in New Issue