summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2026-01-05 13:33:03 +0100
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:25 +0100
commit9d9ac45befd79312e7fe3bb924ad571c565a00dc (patch)
tree974df51c3e8c04e0333c3945e2a88251e866e94a /gnu
parentf6b3355fceedae09f1740fa3d05fd45bbb7aeac1 (diff)
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 740b90b24d..c0f0d4d3f1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11178,7 +11178,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