only build for macos 14 and up (#2731)

* only build for macos 14 and up

* bump metal cpp
This commit is contained in:
Awni Hannun
2025-11-04 09:44:15 -08:00
committed by GitHub
parent 910b3e3299
commit 26ceb507eb
15 changed files with 19 additions and 383 deletions
-9
View File
@@ -1,9 +0,0 @@
import platform
if platform.system() == "Darwin":
version = tuple(map(int, platform.mac_ver()[0].split(".")))
major, minor = version[0], version[1]
if (major, minor) < (13, 5):
raise ImportError(
f"Only macOS 13.5 and newer are supported, not {major}.{minor}"
)