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

commit f36d25866b561613d811de95cf0586dc3b07c3bd
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Feb 4 15:45:35 2026 +0000

    gnu: python-mathics-core: Fix build.
    
    * gnu/packages/maths.scm (python-mathics-core):
      [phases] {set-home}: Move before {build}.
    
    Relates-to: guix/guix#5892
    Change-Id: I682c1e5331e7e3a4f99fa5a5322f79e6093b6b5a
---
 gnu/packages/maths.scm | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index b24eb54111..1bc769b985 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -11416,6 +11416,11 @@ the Wolfram language.")
                        "-o" "op-tables.json")
                (invoke "mathics3-generate-operator-json-table"
                        "-o" "operator-tables.json"))))
+         (add-before 'build 'set-home
+           (lambda _
+             ;; The sanity check imports mathics which tries to create a
+             ;; config directory in HOME.  Set HOME to a writable location.
+             (setenv "HOME" "/tmp")))
          (add-before 'check 'prepare-check
            (lambda* (#:key inputs outputs #:allow-other-keys)
              ;(copy-file "operator-tables.json" 
"mathics/data/operator-tables.json")
@@ -11425,12 +11430,7 @@ the Wolfram language.")
            (lambda _
              ;; Otherwise 210 tests fail because the real output would use
              ;; unicode arrow characters.  With this, only 18 (symbolic) tests 
fail.
-             (setenv "MATHICS_CHARACTER_ENCODING" "ASCII")))
-         (add-before 'check 'set-home
-           (lambda _
-             ;; The sanity check imports mathics which tries to create a
-             ;; config directory in HOME.  Set HOME to a writable location.
-             (setenv "HOME" "/tmp"))))))
+             (setenv "MATHICS_CHARACTER_ENCODING" "ASCII"))))))
     (build-system pyproject-build-system)
     (native-inputs (list python-pytest python-setuptools python-wheel))
     (inputs (list llvm))

Reply via email to