MCPcopy Create free account
hub / github.com/pytorch/executorch / is_intel_mac_os

Function is_intel_mac_os

install_utils.py:195–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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).
195def 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
204def python_is_compatible():

Callers 1

install_requirementsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected