clingo bootstrap: remove 3.12 patch and concretizer workarounds (#44028)

This commit is contained in:
Harmen Stoppels
2024-05-06 15:00:41 +02:00
committed by GitHub
parent dc71dcfdc2
commit 9b4ca0be40
4 changed files with 12 additions and 33 deletions

View File

@@ -270,10 +270,6 @@ def try_import(self, module: str, abstract_spec_str: str) -> bool:
with spack_python_interpreter():
# Add hint to use frontend operating system on Cray
concrete_spec = spack.spec.Spec(abstract_spec_str + " ^" + spec_for_current_python())
# This is needed to help the old concretizer taking the `setuptools` dependency
# only when bootstrapping from sources on Python 3.12
if spec_for_current_python() == "python@3.12":
concrete_spec.constrain("+force_setuptools")
if module == "clingo":
# TODO: remove when the old concretizer is deprecated # pylint: disable=fixme