def define_compiler_version_constraints(self):
    compiler_list = spack.compilers.all_compiler_specs()
    compiler_list = list(sorted(set(compiler_list)))
    for (pkg_name, cspec) in self.compiler_version_constraints:
        for compiler in compiler_list:
            if compiler.satisfies(cspec):
                self.gen.fact(fn.node_compiler_version_satisfies(pkg_name, cspec.name, cspec.versions, compiler.version))
    self.gen.newline()
def define_compiler_version_constraints(self):
    compiler_list = spack.compilers.all_compiler_specs()
    compiler_list = list(sorted(set(compiler_list)))
    for (pkg_name, cspec) in self.compiler_version_constraints:
        for compiler in compiler_list:
            if compiler.satisfies(cspec):
                self.gen.fact(fn.node_compiler_version_satisfies(pkg_name, cspec.name, cspec.versions, compiler.version))
    self.gen.newline()