Warn users of the future removal of platform=cray (#43980)

This commit is contained in:
Massimiliano Culpo 2024-05-07 10:30:23 +02:00 committed by GitHub
parent bcd05407b8
commit 2db5bca778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3776,6 +3776,12 @@ class Solver:
def __init__(self): def __init__(self):
self.driver = PyclingoDriver() self.driver = PyclingoDriver()
self.selector = ReusableSpecsSelector(configuration=spack.config.CONFIG) 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 @staticmethod
def _check_input_and_extract_concrete_specs(specs): def _check_input_and_extract_concrete_specs(specs):