From cf9dc3fc81389bf695d6569a6c0dd4389299210a Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Mon, 15 May 2023 00:08:50 -0700 Subject: `spack find`: get rid of @= in arch/compiler headers (#37672) The @= in `spack find` output adds a bit of noise. Remove it as we did for `spack spec` and `spack concretize`. This modifies display_specs so it actually covers other places we use that routine, as well, e.g., `spack buildcache list`. before: ``` -- linux-ubuntu20.04-aarch64 / gcc@=11.1.0 ----------------------- ofdlcpi libpressio@0.88.0 ``` after: ``` -- linux-ubuntu20.04-aarch64 / gcc@11.1.0 ----------------------- ofdlcpi libpressio@0.88.0 ``` --- lib/spack/spack/cmd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/cmd/__init__.py b/lib/spack/spack/cmd/__init__.py index 9ca3ae4c6d..f07173d9fc 100644 --- a/lib/spack/spack/cmd/__init__.py +++ b/lib/spack/spack/cmd/__init__.py @@ -347,7 +347,7 @@ def iter_groups(specs, indent, all_headers): spack.spec.architecture_color, architecture if architecture else "no arch", spack.spec.compiler_color, - compiler if compiler else "no compiler", + f"{compiler.name}@{compiler.version}" if compiler else "no compiler", ) # Sometimes we want to display specs that are not yet concretized. -- cgit v1.2.3-70-g09d2