mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-18 18:28:12 +08:00
Version bump and os error (#807)
This commit is contained in:
9
python/mlx/_os_warning.py
Normal file
9
python/mlx/_os_warning.py
Normal file
@@ -0,0 +1,9 @@
|
||||
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}"
|
||||
)
|
Reference in New Issue
Block a user