Skip to content

Commit fd9cf7b

Browse files
committed
Add patch for mlx
1 parent 62fa26b commit fd9cf7b

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[[rules]]
2+
version = '== 0.16.2'
3+
patch = 'mlx-0.16.2.patch'
4+
license = 'MIT'
5+
6+
[[add-sources]]
7+
version = '0.16.2'
8+
url = 'https://github.com/ml-explore/mlx/archive/refs/tags/v0.16.2.tar.gz'
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
index 07c15ff..3e5ce82 100644
3+
--- a/pyproject.toml
4+
+++ b/pyproject.toml
5+
@@ -1,7 +1,7 @@
6+
[build-system]
7+
requires = [
8+
"setuptools>=42",
9+
- "nanobind@git+https://github.com/wjakob/nanobind.git@2f04eac452a6d9142dedb957701bdb20125561e4",
10+
+ "nanobind@git+https://github.com/msimacek/[email protected]",
11+
"cmake>=3.24",
12+
]
13+
build-backend = "setuptools.build_meta"
14+
diff --git a/setup.py b/setup.py
15+
index 7bd1be4..390c84c 100644
16+
--- a/setup.py
17+
+++ b/setup.py
18+
@@ -13,6 +13,7 @@ from setuptools.command.build_ext import build_ext
19+
20+
21+
def get_version(version):
22+
+ return version
23+
if "PYPI_RELEASE" not in os.environ:
24+
today = datetime.date.today()
25+
version = f"{version}.dev{today.year}{today.month:02d}{today.day:02d}"

0 commit comments

Comments
 (0)