()
| 193 | # Prebuilt binaries for Intel-based macOS are no longer available on PyPI; users must compile from source. |
| 194 | # PyTorch stopped building macOS x86_64 binaries since version 2.3.0 (January 2024). |
| 195 | def is_intel_mac_os(): |
| 196 | # Returns True if running on Intel macOS. |
| 197 | return platform.system().lower() == "darwin" and platform.machine().lower() in ( |
| 198 | "x86", |
| 199 | "x86_64", |
| 200 | "i386", |
| 201 | ) |
| 202 | |
| 203 | |
| 204 | def python_is_compatible(): |
no outgoing calls
no test coverage detected