-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Expand file tree
/
Copy pathbuild-wheel.sh
More file actions
executable file
·28 lines (22 loc) · 1.02 KB
/
build-wheel.sh
File metadata and controls
executable file
·28 lines (22 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# build-wheel.sh - Build Ray manylinux wheels locally
#
# This is a thin wrapper that delegates to ci/build/build_wheel.py via uv.
# Run with --help for usage information.
set -euo pipefail
# Check for uv
if ! command -v uv &>/dev/null; then
echo "Error: uv is required. Install from: https://docs.astral.sh/uv/" >&2
exit 1
fi
RAY_ROOT="$(git rev-parse --show-toplevel)"
RAYCI_VERSION=$(cat "$RAY_ROOT/.rayciversion")
# Detect platform for wheel tag
case "$(uname -s)-$(uname -m)" in
Darwin-arm64) WHEEL_PLATFORM="macosx_12_0_arm64" ;;
Linux-x86_64) WHEEL_PLATFORM="manylinux2014_x86_64" ;;
Linux-aarch64) WHEEL_PLATFORM="manylinux2014_aarch64" ;;
*) echo "Error: Unsupported platform: $(uname -s)-$(uname -m)" >&2; exit 1 ;;
esac
RAYMAKE_URL="https://github.com/ray-project/rayci/releases/download/v${RAYCI_VERSION}/raymake-${RAYCI_VERSION}-py3-none-${WHEEL_PLATFORM}.whl"
PYTHONPATH="$RAY_ROOT${PYTHONPATH:+:$PYTHONPATH}" exec uv run --with "$RAYMAKE_URL" "$RAY_ROOT/ci/build/build_wheel.py" "$@"