summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2024-05-13 10:01:47 +0200
committerGitHub <noreply@github.com>2024-05-13 10:01:47 +0200
commit725f427f25103ae5d6c12b4f941f642d10f08bf5 (patch)
treeb44e2978d33abb69eb21b278ab3dc758921f1c9b /lib
parent32b3e91ef721457acdb7ffed248e7e02441f5404 (diff)
downloadspack-725f427f25103ae5d6c12b4f941f642d10f08bf5.tar.gz
spack-725f427f25103ae5d6c12b4f941f642d10f08bf5.tar.bz2
spack-725f427f25103ae5d6c12b4f941f642d10f08bf5.tar.xz
spack-725f427f25103ae5d6c12b4f941f642d10f08bf5.zip
spack checksum: do not add expand=False to wheels (#44118)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/util/format.py12
1 files changed, 1 insertions, 11 deletions
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)