MCPcopy Create free account
hub / github.com/conda/constructor / get_output_filename

Function get_output_filename

constructor/main.py:92–109  ·  view source on GitHub ↗
(info: dict)

Source from the content-addressed store, hash-verified

90
91
92def get_output_filename(info: dict) -> str:
93 try:
94 return info["installer_filename"]
95 except KeyError:
96 pass
97
98 osname, arch = info["_platform"].split("-")
99 os_map = {"linux": "Linux", "osx": "MacOSX", "win": "Windows"}
100 arch_name_map = {"64": "x86_64", "32": "x86"}
101 ext = info["installer_type"]
102 if ext == "docker":
103 ext = "sh"
104 return "%s-%s-%s.%s" % (
105 "%(name)s-%(version)s" % info,
106 os_map.get(osname, osname),
107 arch_name_map.get(arch, arch),
108 ext,
109 )
110
111
112def _conda_exe_supports_logging(conda_exe: str, conda_exe_type: StandaloneExe | None) -> bool:

Callers 1

main_buildFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected