mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-15 17:39:05 +08:00
only build for macos 14 and up (#2731)
* only build for macos 14 and up * bump metal cpp
This commit is contained in:
@@ -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}"
|
||||
)
|
||||
@@ -28,7 +28,6 @@ NB_MODULE(core, m) {
|
||||
m.doc() = "mlx: A framework for machine learning on Apple silicon.";
|
||||
|
||||
auto reprlib_fix = nb::module_::import_("mlx._reprlib_fix");
|
||||
nb::module_::import_("mlx._os_warning");
|
||||
nb::set_leak_warnings(false);
|
||||
|
||||
init_mlx_func(m);
|
||||
|
||||
Reference in New Issue
Block a user