spack checksum: do not add expand=False to wheels (#44118)
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user