mlx/python/mlx/_os_warning.py
2024-03-07 13:57:58 -08:00

10 lines
303 B
Python

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}"
)