| 48 | |
| 49 | |
| 50 | def _module_name(sys_platform: str, machine: str) -> str: |
| 51 | if sys_platform == "linux": |
| 52 | module_name = _LINUX_MODULES.get(machine) |
| 53 | if module_name is None: |
| 54 | supported = ", ".join(_LINUX_MODULES) |
| 55 | raise RuntimeError(f"Unsupported Linux architecture: {machine}. Supported: {supported}") |
| 56 | return module_name |
| 57 | |
| 58 | module_name = _PLATFORM_MODULES.get(sys_platform) |
| 59 | if module_name is None: |
| 60 | raise RuntimeError(f"Unsupported platform: {sys_platform}. Supported: linux, darwin, win32") |
| 61 | return module_name |
| 62 | |
| 63 | |
| 64 | def binary_path() -> str: |