From 2db5bca778981e25499a099cc13cc8efee7d1e19 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 7 May 2024 10:30:23 +0200 Subject: [PATCH] Warn users of the future removal of platform=cray (#43980) --- lib/spack/spack/solver/asp.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py index 6b2205a6bb..a6fcd6a411 100644 --- a/lib/spack/spack/solver/asp.py +++ b/lib/spack/spack/solver/asp.py @@ -3776,6 +3776,12 @@ class Solver: def __init__(self): self.driver = PyclingoDriver() self.selector = ReusableSpecsSelector(configuration=spack.config.CONFIG) + if spack.platforms.host().name == "cray": + msg = ( + "The Cray platform, i.e. 'platform=cray', will be removed in Spack v0.23. " + "All Cray machines will be then detected as 'platform=linux'." + ) + warnings.warn(msg) @staticmethod def _check_input_and_extract_concrete_specs(specs):