Subject: [bug#67237] [PATCH 12/32] gnu: python-pynbody: Prepare for cross compilation.

From: Sharlatan Hellseher <[email-masked]>
Date: Fri, 17 Nov 2023 12:16:01 +0000

* gnu/packages/astronomy.scm (python-pynbody)[arguments]{phases}: Add
'set-compiler phase.

Change-Id: I64feabbdd76679d5a86a85a9f50cd0be90f60c1c
---
 gnu/packages/astronomy.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 85180e40ad..e42b87144c 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3575,7 +3575,12 @@ (define-public python-pynbody
                            "--ignore=tests/sph_smooth_test.py"
                            "--ignore=tests/subfind_test.py"
                            "--ignore=tests/subfindhdf_gadget4_test.py"
-                           "--ignore=tests/tipsy_test.py")))
+                           "--ignore=tests/tipsy_test.py")
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'build 'set-compiler
+                 (lambda _
+                   (setenv "CC" #$(cc-for-target)))))))
     (native-inputs
      (list python-cython
            python-pandas
-- 
2.41.0