Skip to content

Commit

Permalink
Build Python 3.13 wheels (#50531)
Browse files Browse the repository at this point in the history
<!-- Thank you for your contribution! Please review
https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before
opening a pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

After #47984 we can now build the
wheels.

Note that these are not tested yet, since unfortunately conda doesn't
currently support Python 3.13 as the base environment
(conda/conda#14353) and changing everything to
run in a custom conda environment seems to require a decent amount of
changes.

## Related issue number

<!-- For example: "Closes #1234" -->

## Checks

- [ ] I've signed off every commit(by using the -s flag, i.e., `git
commit -s`) in this PR.
- [ ] I've run `scripts/format.sh` to lint the changes in this PR.
- [ ] I've included any doc changes needed for
https://docs.ray.io/en/master/.
- [ ] I've added any new APIs to the API Reference. For example, if I
added a
method in Tune, I've added it in `doc/source/tune/api/` under the
           corresponding `.rst` file.
- [ ] I've made sure the tests are passing. Note that there might be a
few flaky tests, see the recent failures at https://flakey-tests.ray.io/
- Testing Strategy
   - [ ] Unit tests
   - [ ] Release tests
   - [ ] This PR is not tested :(
  • Loading branch information
pcmoritz authored and israbbani committed Feb 25, 2025
1 parent e7b0687 commit f5579a4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .buildkite/build.rayci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ steps:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
depends_on:
- manylinux
- forge
Expand Down
2 changes: 1 addition & 1 deletion ci/build/build-manylinux-wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export RAY_BUILD_ENV="manylinux_py${PYTHON}"

mkdir -p .whl
cd python
/opt/python/"${PYTHON}"/bin/pip install -q cython==0.29.37
/opt/python/"${PYTHON}"/bin/pip install -q cython==3.0.12 setuptools==75.8.0
# Set the commit SHA in _version.py.
if [[ -n "$TRAVIS_COMMIT" ]]; then
sed -i.bak "s/{{RAY_COMMIT_SHA}}/$TRAVIS_COMMIT/g" ray/_version.py && rm ray/_version.py.bak
Expand Down
1 change: 1 addition & 0 deletions ci/ray_ci/builder_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class PythonVersionInfo(TypedDict):
"3.10": PythonVersionInfo(bin_path="cp310-cp310"),
"3.11": PythonVersionInfo(bin_path="cp311-cp311"),
"3.12": PythonVersionInfo(bin_path="cp312-cp312"),
"3.13": PythonVersionInfo(bin_path="cp313-cp313"),
}
DEFAULT_PYTHON_VERSION = "3.9"
DEFAULT_BUILD_TYPE = "optimized"
Expand Down
2 changes: 1 addition & 1 deletion python/build-wheel-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ DOWNLOAD_DIR=python_downloads

NODE_VERSION="14"

PY_MMS=("3.9" "3.10" "3.11" "3.12")
PY_MMS=("3.9" "3.10" "3.11" "3.12" "3.13")

if [[ -n "${SKIP_DEP_RES}" ]]; then
./ci/env/install-bazel.sh
Expand Down
1 change: 1 addition & 0 deletions python/build-wheel-manylinux2014.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ PYTHON_VERSIONS=(
"py310 cp310-cp310"
"py311 cp311-cp311"
"py312 cp312-cp312"
"py313 cp313-cp313"
)

# Add the repo folder to the safe.directory global variable to avoid the failure
Expand Down

0 comments on commit f5579a4

Please sign in to comment.