| 90 | |
| 91 | |
| 92 | def 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 | |
| 112 | def _conda_exe_supports_logging(conda_exe: str, conda_exe_type: StandaloneExe | None) -> bool: |