guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit ed9ad0d00e73fd683052d2aa30aa6b07fe311784
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Jan 28 08:33:34 2026 +0100

    gnu: julia-pycall: Switch to pyproject.
    
    * gnu/packages/julia-xyz.scm (julia-pycall):
    [arguments]<#:imported-modules, #:modules>: Switch to
    pyproject-build-system.
    <#:phases>: Improve phase 'set-python.
    
    Change-Id: I6b2899db709ef311e86308537bc98d9a06caef42
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/julia-xyz.scm | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index c3c7872786..d888c7d52a 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -5445,11 +5445,11 @@ This can help users track the progress of long-running 
tasks.")
     (build-system julia-build-system)
     (arguments
      (list
-      #:imported-modules `((guix build python-build-system)
+      #:imported-modules `((guix build pyproject-build-system)
                            ,@%julia-build-system-modules)
       #:modules '((guix build julia-build-system)
                   (guix build utils)
-                  ((guix build python-build-system) #:prefix python:))
+                  ((guix build pyproject-build-system) #:prefix py:))
       #:phases
       #~(modify-phases %standard-phases
         (add-after 'link-depot 'remove-conda
@@ -5463,23 +5463,23 @@ This can help users track the progress of long-running 
tasks.")
               (("Conda.PYTHONDIR") "\"/\""))))
         (add-after 'link-depot 'set-python
           (lambda* (#:key inputs outputs #:allow-other-keys)
-            (let ((python (assoc-ref inputs "python")))
-              (setenv "PYCALL_JL_RUNTIME_PYTHON"
-                      (string-append python "/bin/python3"))
+            (let* ((python (search-input-file inputs "/bin/python3"))
+                   (python-install (dirname (dirname python))))
+              (setenv "PYCALL_JL_RUNTIME_PYTHON" python)
               (with-output-to-file "deps/deps.jl"
                 (lambda _
                   (format #t
-                          "const python = \"~a/bin/python3\"~@
-                           const pyprogramname = \"~a/bin/python3\"~@
+                          "const python = ~s~@
+                           const pyprogramname = ~s~@
                            const libpython = \"~a/lib/libpython~a.so.1.0\"~@
                            const PYTHONHOME = \"~a\"~@
                            const pyversion_build = v\"~a\"~@
                            const conda = false~%"
                           python
                           python
-                          python
-                          (python:python-version python)
-                          python
+                          python-install
+                          (py:python-version python-install)
+                          python-install
                           #$(package-version python)))))))
         (add-before 'check 'pre-check
           (lambda _

Reply via email to