|
| 1 | +From b43952eeafb7985728fcc674ea91112737719496 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Matti Picus <matti.picus@gmail.com> |
| 3 | +Date: Thu, 31 Jul 2025 11:35:18 +1000 |
| 4 | +Subject: [PATCH] cython-shebang |
| 5 | + |
| 6 | +--- |
| 7 | + bazel/ray_deps_setup.bzl | 4 ++++ |
| 8 | + thirdparty/patches/cython-shebang.patch | 9 +++++++++ |
| 9 | + 2 files changed, 13 insertions(+) |
| 10 | + create mode 100644 thirdparty/patches/cython-shebang.patch |
| 11 | + |
| 12 | +diff --git a/bazel/ray_deps_setup.bzl b/bazel/ray_deps_setup.bzl |
| 13 | +index e98895248d..41af9fa47a 100644 |
| 14 | +--- a/bazel/ray_deps_setup.bzl |
| 15 | ++++ b/bazel/ray_deps_setup.bzl |
| 16 | +@@ -198,6 +198,10 @@ def ray_deps_setup(): |
| 17 | + build_file = True, |
| 18 | + url = "https://github.com/cython/cython/archive/refs/tags/3.0.12.tar.gz", |
| 19 | + sha256 = "a156fff948c2013f2c8c398612c018e2b52314fdf0228af8fbdb5585e13699c2", |
| 20 | ++ patches = [ |
| 21 | ++ "@com_github_ray_project_ray//thirdparty/patches:cython-shebang.patch", |
| 22 | ++ ], |
| 23 | ++ patch_args = ["-p1"], |
| 24 | + ) |
| 25 | + |
| 26 | + auto_http_archive( |
| 27 | +diff --git a/thirdparty/patches/cython-shebang.patch b/thirdparty/patches/cython-shebang.patch |
| 28 | +new file mode 100644 |
| 29 | +index 0000000000..1eacc91fdc |
| 30 | +--- /dev/null |
| 31 | ++++ b/thirdparty/patches/cython-shebang.patch |
| 32 | +@@ -0,0 +1,9 @@ |
| 33 | ++diff a/cython.py b/cython.py |
| 34 | ++--- a/cython.py |
| 35 | +++++ b/cython.py |
| 36 | ++@@ -1,4 +1,4 @@ |
| 37 | ++-#!/usr/bin/env python |
| 38 | +++#!/usr/bin/env python3 |
| 39 | ++ |
| 40 | ++ # |
| 41 | ++ # Cython -- Main Program, generic |
| 42 | +-- |
| 43 | +2.39.5 (Apple Git-154) |
| 44 | + |
0 commit comments