Skip to content

Commit bd4e2ba

Browse files
committed
fix cython shebang
1 parent 38cb187 commit bd4e2ba

File tree

3 files changed

+45
-35
lines changed

3 files changed

+45
-35
lines changed

recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ source:
1111
- patches/0001-Disable-making-entry-scripts.patch
1212
- patches/0002-Ignore-warnings-in-event.cc-and-logging.cc.patch
1313
- patches/0003-remove-dependencies.patch
14-
- patches/0010-use-system-cython-by-smlinking.patch # [linux]
14+
- patches/0010-cython-shebang.patch
1515
# See https://github.com/conda-forge/ray-packages-feedstock/issues/136
1616
# Keep in sync with current or active migration of libgrpc to avoid
1717
# ABI breakage
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+

recipe/patches/0010-use-system-cython-by-smlinking.patch

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)