Skip to content

Commit 2830180

Browse files
authored
Version bump and os error (#807)
1 parent 74ed097 commit 2830180

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ option(MLX_BUILD_METAL "Build metal backend" ON)
1818
option(BUILD_SHARED_LIBS "Build mlx as a shared library" OFF)
1919

2020
if(NOT MLX_VERSION)
21-
set(MLX_VERSION 0.5.1)
21+
set(MLX_VERSION 0.6.0)
2222
endif()
2323

2424
# --------------------- Processor tests -------------------------

python/mlx/_os_warning.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import platform
2+
3+
if platform.system() == "Darwin":
4+
version = tuple(map(int, platform.mac_ver()[0].split(".")))
5+
major, minor = version[0], version[1]
6+
if (major, minor) < (13, 5):
7+
raise ImportError(
8+
f"Only macOS 13.5 and newer are supported, not {major}.{minor}"
9+
)

python/src/mlx.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ PYBIND11_MODULE(core, m) {
2424
m.doc() = "mlx: A framework for machine learning on Apple silicon.";
2525

2626
auto reprlib_fix = py::module_::import("mlx._reprlib_fix");
27+
py::module_::import("mlx._os_warning");
2728

2829
init_device(m);
2930
init_stream(m);

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def run(self) -> None:
152152

153153
setup(
154154
name="mlx",
155-
version=get_version("0.5.1"),
155+
version=get_version("0.6.0"),
156156
author="MLX Contributors",
157157
author_email="[email protected]",
158158
description="A framework for machine learning on Apple silicon.",

0 commit comments

Comments
 (0)