()
| 96 | |
| 97 | |
| 98 | def operating_system() -> str: |
| 99 | match platform.system(): |
| 100 | case "Windows": |
| 101 | system = "windows" |
| 102 | case "Linux": |
| 103 | system = "linux" |
| 104 | case "Darwin": |
| 105 | system = "macos" |
| 106 | case other: |
| 107 | warnings.warn("Unexpected system.") |
| 108 | system = other |
| 109 | match platform.machine(): |
| 110 | case "AMD64" | "x86_64": |
| 111 | machine = "x86_64" |
| 112 | case "arm64": |
| 113 | machine = "arm64" |
| 114 | case other: |
| 115 | warnings.warn("Unexpected platform.") |
| 116 | machine = other |
| 117 | return f"{system}-{machine}" |
| 118 | |
| 119 | |
| 120 | def _pyinstaller(specfile: str) -> None: |
no test coverage detected
searching dependent graphs…