From f6a71c2683aa908cf8df1dbea8d5e21a71c4ce98 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 24 Mar 2026 11:18:08 +0100 Subject: [PATCH] gnu: tensile: Switch to pyproject. * gnu/packages/rocm-libs.scm (tensile): [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Set them. <#:phases>: Drop 'check phase replacement. Change-Id: Ie80b85ae5d79098b964012a0daed65935ccd8337 Signed-off-by: Sharlatan Hellseher --- gnu/packages/rocm-libs.scm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gnu/packages/rocm-libs.scm b/gnu/packages/rocm-libs.scm index e4f04ef164..4724bff5b2 100644 --- a/gnu/packages/rocm-libs.scm +++ b/gnu/packages/rocm-libs.scm @@ -17,7 +17,7 @@ (define-module (gnu packages rocm-libs) #:use-module (guix build-system cmake) - #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) @@ -273,9 +273,11 @@ configurations deterministically based on compute and memory latencies.") "1wff80vd1x1vcg3n56qlc9hdabk9svz6qk0sznycjwzbsmpfb0mr")) (patches (search-patches "tensile-copy-if-not-exist.patch")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments (list + #:test-flags + #~(list "Tensile/Tests" "-m" "unit" "-k" "not test_prepAsm") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-rocm-directory @@ -295,12 +297,7 @@ configurations deterministically based on compute and memory latencies.") "availableArchs = ['" (string-join (current-amd-gpu-targets) "', '") "']"))) (setenv "TENSILE_ROCM_ASSEMBLER_PATH" - (string-append (which "clang"))))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "-vv" "Tensile/Tests" "-m" "unit" - "-k" "not test_prepAsm"))))))) + (string-append (which "clang")))))))) (native-inputs (list python-filelock python-pandas