mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-11 06:11:26 +01:00
gnu: 389-ds-base: Restore definition of pythondir.
* gnu/packages/openldap.scm (389-ds-base)[arguments]: Import python-version from (guix build python-build-system); define pythondir before using it in fix-install-location-of-python-tools.
This commit is contained in:
parent
2bec19199e
commit
6cd6b0abe7
1 changed files with 6 additions and 2 deletions
|
@ -229,7 +229,7 @@ servers from Python programs.")
|
||||||
`(#:modules ((srfi srfi-1)
|
`(#:modules ((srfi srfi-1)
|
||||||
(guix build gnu-build-system)
|
(guix build gnu-build-system)
|
||||||
((guix build python-build-system)
|
((guix build python-build-system)
|
||||||
#:select (add-installed-pythonpath))
|
#:select (add-installed-pythonpath python-version))
|
||||||
(guix build utils))
|
(guix build utils))
|
||||||
#:imported-modules ((guix build python-build-system)
|
#:imported-modules ((guix build python-build-system)
|
||||||
,@%gnu-build-system-modules)
|
,@%gnu-build-system-modules)
|
||||||
|
@ -282,7 +282,11 @@ servers from Python programs.")
|
||||||
"etc_dirsrv_path = '/etc/dirsrv/'\n")))))
|
"etc_dirsrv_path = '/etc/dirsrv/'\n")))))
|
||||||
(add-after 'unpack 'fix-install-location-of-python-tools
|
(add-after 'unpack 'fix-install-location-of-python-tools
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out")))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(pythondir (string-append
|
||||||
|
out "/lib/python"
|
||||||
|
(python-version (assoc-ref inputs "python"))
|
||||||
|
"/site-packages/")))
|
||||||
;; Install directory must be on PYTHONPATH.
|
;; Install directory must be on PYTHONPATH.
|
||||||
(add-installed-pythonpath inputs outputs)
|
(add-installed-pythonpath inputs outputs)
|
||||||
;; Install directory must exist.
|
;; Install directory must exist.
|
||||||
|
|
Loading…
Add table
Reference in a new issue