File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed
Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ build --host_platform=//bazel_toolchain:build_platform
3030build --experimental_ui_max_stdouterr_bytes=16000000
3131build --local_ram_resources=HOST_RAM*.8 --local_cpu_resources=2
3232EOF
33- else
34- echo " build --action_env=PYTHON_BIN_PATH=$PATH " >> .bazelrc
3533fi
3634
3735echo ' ---------------- .bazelrc --------------------------'
Original file line number Diff line number Diff line change @@ -11,6 +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]
1415 # See https://github.com/conda-forge/ray-packages-feedstock/issues/136
1516 # Keep in sync with current or active migration of libgrpc to avoid
1617 # ABI breakage
Original file line number Diff line number Diff line change 1+ From 3e80364b8ab6e1fd88c0cd5bc1183cfae84a71b8 Mon Sep 17 00:00:00 2001
2+ From: Matti Picus <matti.picus@gmail.com>
3+ Date: Thu, 31 Jul 2025 09:43:42 +1000
4+ Subject: [PATCH] use system cython by symlinking it into the bazel env
5+
6+ ---
7+ bazel/cython.BUILD | 9 +++++++--
8+ 1 file changed, 7 insertions(+), 2 deletions(-)
9+
10+ diff --git a/bazel/cython.BUILD b/bazel/cython.BUILD
11+ index 220eea983f..4e5a5871ad 100644
12+ --- a/bazel/cython.BUILD
13+ +++ b/bazel/cython.BUILD
14+ @@ -19,10 +19,15 @@ py_library(
15+ visibility=["//visibility:public"],
16+ )
17+
18+ + genrule(
19+ + name = "lncython",
20+ + outs = ["cython"],
21+ + cmd = "ln -s $$(which cython) $@",
22+ + )
23+ +
24+ # May not be named "cython", since that conflicts with Cython/ on OSX
25+ filegroup(
26+ name="cython_binary",
27+ - srcs=["cython.py"],
28+ + srcs=["cython"],
29+ visibility=["//visibility:public"],
30+ - data=["cython_lib"],
31+ )
32+ - -
33+ 2.39.5 (Apple Git-154)
34+
You can’t perform that action at this time.
0 commit comments