File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -233,21 +233,27 @@ install_go() {
233
233
fi
234
234
}
235
235
236
- bazel_ensure_buildable_on_windows () {
236
+ _bazel_build_before_install () {
237
+ local target
237
238
if [ " ${OSTYPE} " = msys ]; then
238
- # This performs as full of a build as possible, to ensure the repository always remains buildable on Windows.
239
+ # On Windows, we perform as full of a build as possible, to ensure the repository always remains buildable on Windows.
239
240
# (Pip install will not perform a full build.)
240
- # NOTE: Do not add build flags here. Use .bazelrc and --config instead.
241
- bazel build -k " //:*"
241
+ target=" //:*"
242
+ else
243
+ # Just build Python on other platforms.
244
+ # This because pip install captures & suppresses the build output, which causes a timeout on CI.
245
+ target=" //:ray_pkg"
242
246
fi
247
+ # NOTE: Do not add build flags here. Use .bazelrc and --config instead.
248
+ bazel build -k " ${target} "
243
249
}
244
250
245
251
install_ray () {
246
252
# TODO(mehrdadn): This function should be unified with the one in python/build-wheel-windows.sh.
247
253
(
248
254
cd " ${WORKSPACE_DIR} " /python
249
255
build_dashboard_front_end
250
- pip install -v -v -e .
256
+ keep_alive pip install -v -e .
251
257
)
252
258
}
253
259
@@ -431,7 +437,7 @@ init() {
431
437
}
432
438
433
439
build () {
434
- bazel_ensure_buildable_on_windows
440
+ _bazel_build_before_install
435
441
436
442
if ! need_wheels; then
437
443
install_ray
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ install_ray() {
32
32
pip install wheel
33
33
34
34
cd " ${WORKSPACE_DIR} " /python
35
- pip install -v -e .
35
+ " ${WORKSPACE_DIR} " /ci/keep_alive pip install -v -e .
36
36
)
37
37
}
38
38
You can’t perform that action at this time.
0 commit comments