summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2024-05-07 10:30:23 +0200
committerGitHub <noreply@github.com>2024-05-07 10:30:23 +0200
commit2db5bca778981e25499a099cc13cc8efee7d1e19 (patch)
treed8703a787e4a99f783f896df8e6c4d952f8ba2a4
parentbcd05407b8cda1094fd2f259cb9caaa2d543db05 (diff)
downloadspack-2db5bca778981e25499a099cc13cc8efee7d1e19.tar.gz
spack-2db5bca778981e25499a099cc13cc8efee7d1e19.tar.bz2
spack-2db5bca778981e25499a099cc13cc8efee7d1e19.tar.xz
spack-2db5bca778981e25499a099cc13cc8efee7d1e19.zip
Warn users of the future removal of platform=cray (#43980)
-rw-r--r--lib/spack/spack/solver/asp.py6
1 files changed, 6 insertions, 0 deletions
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):