File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ include_spec = Spec(sys.argv[1])
3636exclude_spec = Spec(sys.argv[2])
3737
3838all_included = database.query(include_spec)
39- result = filter(lambda spec: not spec.satisfies(exclude_spec), all_included)
39+ result = [spec for spec in all_included if not spec.satisfies(exclude_spec)]
4040
4141spack.cmd.display_specs(result)
4242EOF
Original file line number Diff line number Diff line change 11 >>> gcc_query_spec = Spec('%gcc')
22 >>> gcc_specs = spack.store.STORE.db.query(gcc_query_spec)
3- >>> result = filter(lambda spec: not spec.satisfies('^mpich'), gcc_specs)
3+ >>> result = [spec for spec in gcc_specs if not spec.satisfies('^mpich')]
44 >>> import spack.cmd
55 >>> spack.cmd.display_specs(result)
66 -- linux-ubuntu22.04-x86_64_v3 / gcc@11.4.0 -------------------------
You can’t perform that action at this time.
0 commit comments