guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 3423d00892291b90f3e66734133f8ab21def03a5
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Jan 28 08:45:29 2026 +0100
gnu: 389-ds-base: Switch to pyproject.
* gnu/packages/openldap.scm (389-ds-base):
[arguments]<#:imported-modules, #:modules>: Switch to
pyproject-build-system.
<#:phases>: Use site-packages in phase
'fix-install-location-of-python-tools.
Change-Id: Idf2865bddc06a4cf38fa106b9ca1576320d98fff
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/openldap.scm | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm
index a779ccc79f..638dc92d7e 100644
--- a/gnu/packages/openldap.scm
+++ b/gnu/packages/openldap.scm
@@ -258,11 +258,10 @@ servers from Python programs.")
(list
#:modules '((srfi srfi-1)
(guix build gnu-build-system)
- ((guix build python-build-system)
- #:select (add-installed-pythonpath python-version))
+ ((guix build pyproject-build-system) #:prefix py:)
(guix build utils))
- #:imported-modules `((guix build python-build-system)
- ,@%default-gnu-imported-modules)
+ #:imported-modules (append %default-gnu-imported-modules
+ %pyproject-build-system-modules)
#:disallowed-references (list (this-package-native-input "httpd"))
#:configure-flags
#~(list
@@ -320,12 +319,9 @@ servers from Python programs.")
"etc_dirsrv_path = '/etc/dirsrv/'\n"))))
(add-after 'unpack 'fix-install-location-of-python-tools
(lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((pythondir (string-append
- #$output "/lib/python"
- (python-version #$(this-package-input
"python"))
- "/site-packages/")))
+ (let ((pythondir (py:site-packages inputs outputs)))
;; Install directory must be on PYTHONPATH.
- (add-installed-pythonpath inputs outputs)
+ (py:add-installed-pythonpath inputs outputs)
;; Install directory must exist.
(mkdir-p pythondir)
(setenv "INSTALL_PREFIX" #$output)