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
```
This commit is contained in:
Todd Gamblin 2023-05-15 00:08:50 -07:00 committed by GitHub
parent d265dd2487
commit cf9dc3fc81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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