From 618155f79ddcc804bb188ad2b3bdd66c5a61e2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 5 Jan 2026 13:33:03 +0100 Subject: [PATCH] gnu: python-numpy-1: Reduce closure size through custom wrap phase * gnu/packages/python-xyz.scm (python-numpy-1) [arguments] : Provide custom 'wrap phase. Change-Id: I111ad7dfd39ada63b97b43d7eeb1eda0ca508db5 Signed-off-by: Sharlatan Hellseher --- 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 d2bbb069b17..878a1f755e0 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