From 725f427f25103ae5d6c12b4f941f642d10f08bf5 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Mon, 13 May 2024 10:01:47 +0200 Subject: spack checksum: do not add expand=False to wheels (#44118) --- lib/spack/spack/util/format.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/util/format.py b/lib/spack/spack/util/format.py index c42597a8c3..acbf6f7a24 100644 --- a/lib/spack/spack/util/format.py +++ b/lib/spack/spack/util/format.py @@ -21,16 +21,6 @@ def get_version_lines(version_hashes_dict: dict, url_dict: Optional[dict] = None version_lines = [] for v, h in version_hashes_dict.items(): - expand_arg = "" - - # Extract the url for a version if url_dict is provided. - url = "" - if url_dict is not None and v in url_dict: - url = url_dict[v] - - # Add expand_arg since wheels should not be expanded during stanging - if url.endswith(".whl") or ".whl#" in url: - expand_arg = ", expand=False" - version_lines.append(f' version("{v}", sha256="{h}"{expand_arg})') + version_lines.append(f' version("{v}", sha256="{h}")') return "\n".join(version_lines) -- cgit v1.2.3-70-g09d2