Skip to content

Commit

Permalink
do not push perl to build cache; consistent build cache exclusion list
Browse files Browse the repository at this point in the history
  • Loading branch information
bcumming committed Jan 22, 2025
1 parent 27d11cc commit b543265
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stackinator/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def generate(self, recipe):
pre_install_hook=recipe.pre_install_hook,
spack_version=spack_version,
spack_meta=spack_meta,
exclude_from_cache=["nvhpc", "cuda"],
exclude_from_cache=["nvhpc", "cuda", "perl"],
verbose=False,
)
)
Expand Down
8 changes: 4 additions & 4 deletions stackinator/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def generate_environment_specs(self, raw):

# enumerate large binary packages that should not be pushed to binary caches
for _, config in environments.items():
config["exclude_from_cache"] = ["cuda"]
config["exclude_from_cache"] = ["cuda", "nvhpc", "perl"]

# check the environment descriptions and ammend where features are missing
for name, config in environments.items():
Expand Down Expand Up @@ -433,7 +433,7 @@ def generate_compiler_specs(self, raw):
f"{bootstrap_spec} languages=c,c++",
"squashfs default_compression=zstd",
]
bootstrap["exclude_from_cache"] = []
bootstrap["exclude_from_cache"] = ["cuda", "nvhpc", "perl"]
compilers["bootstrap"] = bootstrap

gcc = {}
Expand All @@ -460,7 +460,7 @@ def generate_compiler_specs(self, raw):
}
gcc["specs"] = raw["gcc"]["specs"]
gcc["requires"] = bootstrap_spec
gcc["exclude_from_cache"] = []
gcc["exclude_from_cache"] = ["cuda", "nvhpc", "perl"]
compilers["gcc"] = gcc
if raw["llvm"] is not None:
llvm = {}
Expand All @@ -474,7 +474,7 @@ def generate_compiler_specs(self, raw):
llvm["specs"].append(f"{spec} +clang targets=x86 ~gold ^ninja@kitware")

llvm["requires"] = raw["llvm"]["requires"]
llvm["exclude_from_cache"] = ["nvhpc"]
llvm["exclude_from_cache"] = ["cuda", "nvhpc", "perl"]
compilers["llvm"] = llvm

self.compilers = compilers
Expand Down

0 comments on commit b543265

Please sign in to comment.