Skip to content

Commit 38cb187

Browse files
committed
use system cython on linux
1 parent 6957b61 commit 38cb187

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

recipe/build-core.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ build --host_platform=//bazel_toolchain:build_platform
3030
build --experimental_ui_max_stdouterr_bytes=16000000
3131
build --local_ram_resources=HOST_RAM*.8 --local_cpu_resources=2
3232
EOF
33-
else
34-
echo "build --action_env=PYTHON_BIN_PATH=$PATH" >> .bazelrc
3533
fi
3634

3735
echo '---------------- .bazelrc --------------------------'

recipe/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+

0 commit comments

Comments
 (0)