From 3e1766e6ff75d8d1bd281246dfb53f0bbb0d0b44 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Fri, 23 Aug 2024 15:32:36 +0200 Subject: [PATCH] Add patch for mlx --- .../lib-graalpython/patches/mlx/metadata.toml | 4 ++++ graalpython/lib-graalpython/patches/mlx/mlx.patch | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 graalpython/lib-graalpython/patches/mlx/mlx.patch diff --git a/graalpython/lib-graalpython/patches/mlx/metadata.toml b/graalpython/lib-graalpython/patches/mlx/metadata.toml index e8416c006f..6ae9e9b7b0 100644 --- a/graalpython/lib-graalpython/patches/mlx/metadata.toml +++ b/graalpython/lib-graalpython/patches/mlx/metadata.toml @@ -1,3 +1,7 @@ +[[rules]] +patch = 'mlx.patch' +license = 'MIT' + [[add-sources]] version = '0.16.3' url = 'https://github.com/ml-explore/mlx/archive/refs/tags/v0.16.3.tar.gz' diff --git a/graalpython/lib-graalpython/patches/mlx/mlx.patch b/graalpython/lib-graalpython/patches/mlx/mlx.patch new file mode 100644 index 0000000000..d74d6e7aec --- /dev/null +++ b/graalpython/lib-graalpython/patches/mlx/mlx.patch @@ -0,0 +1,12 @@ +diff --git a/setup.py b/setup.py +index 7bd1be4..390c84c 100644 +--- a/setup.py ++++ b/setup.py +@@ -13,6 +13,7 @@ from setuptools.command.build_ext import build_ext + + + def get_version(version): ++ return version + if "PYPI_RELEASE" not in os.environ: + today = datetime.date.today() + version = f"{version}.dev{today.year}{today.month:02d}{today.day:02d}"