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>
This commit is contained in:
Sören Tempel 2026-01-05 13:33:03 +01:00 committed by Sharlatan Hellseher
parent 5dd8476d3d
commit 618155f79d
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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