guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 074aa066de4bdfd2a3b244d89e69314e2393a19c
Author: Sören Tempel <[email protected]>
AuthorDate: Mon Jan 5 13:33:03 2026 +0100
gnu: python-numpy-1: Reduce closure size through custom wrap phase
* gnu/packages/python-xyz.scm (python-numpy-1)
[arguments] <phases>: Provide custom 'wrap phase.
Change-Id: I111ad7dfd39ada63b97b43d7eeb1eda0ca508db5
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 401bc4e92b..abe9f4695f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11140,7 +11140,16 @@ include_dirs = ~:*~a/include~%"
" and not test_square_values"
" and not test_sum"
" and not test_switch_owner"
- " and not test_thread_locality"))))))))
+ " and not test_thread_locality")))))
+ ;; See comment for custom python-numpy wrap phase above.
+ (replace 'wrap
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (for-each
+ (lambda (program)
+ (wrap-program program
+ `("GUIX_PYTHONPATH" ":" suffix
+ ,(list (site-packages inputs
outputs)))))
+ (find-files (in-vicinity #$output "/bin"))))))))
(native-inputs
(list meson-python
pkg-config