Add support for Python 3.10#21221
Conversation
|
This PR is just pushing 3.10 changes through our CI pipeline. Locally for me, the build is failing at some cython issue. I'll keep debugging and post logs/errors as I encounter/fix them. |
|
My local build issues: |
|
What's the compiler? |
|
Interesting, this should have been fixed in cython/cython@d8e93b3. We probably need to bump Line 192 in dd3a4aa |
|
@acxz Do you want to try doing that locally to see if that fixes it and submit a PR for it? |
|
Thx for the suggestion @pcmoritz . I can now build locally just fine. There are still some errors in the CI (https://buildkite.com/ray-project/ray-builders-pr/builds/21321#88be7f42-19bb-42c8-ad3f-b8232bb9be21) and of course #16599 |
|
Thanks, this is exciting :) @simon-mo How much work is it to activate 3.10 support for the macOS build pipeline? |
|
One error is currently due to a timeout and another error is due to unavailable packages in the anaconda distribution for python 310 (needed for building the py310 wheels). |
|
👋 I and add Python 3.10 to macOS pipeline. |
|
|
@acxz Do we need to upgrade the grpc version since grpc/grpc#28392 is merged. |
|
added. Here's the change for CI infra diff --git a/ci-macos-experiments/data/userdata.tmpl b/ci-macos-experiments/data/userdata.tmpl
index 96cfb6a..2c59d79 100644
--- a/ci-macos-experiments/data/userdata.tmpl
+++ b/ci-macos-experiments/data/userdata.tmpl
@@ -27,17 +27,20 @@ install_pythons() {
DOWNLOAD_DIR=/tmp/python_downloads
PY_VERSIONS=("3.6.2"
- "3.7.0"
- "3.8.2"
- "3.9.1")
+ "3.7.0"
+ "3.8.2"
+ "3.9.1"
+ "3.10.1")
PY_INSTS=("python-3.6.2-macosx10.6.pkg"
"python-3.7.0-macosx10.6.pkg"
"python-3.8.2-macosx10.9.pkg"
- "python-3.9.1-macosx10.9.pkg")
+ "python-3.9.1-macosx10.9.pkg"
+ "python-3.10.1-macos11.pkg")
PY_MMS=("3.6"
"3.7"
"3.8"
- "3.9")
+ "3.9"
+ "3.10")
mkdir -p $DOWNLOAD_DIR
diff --git a/ci-macos-module/data/userdata.tmpl b/ci-macos-module/data/userdata.tmpl
index 76ba812..b4fabc0 100644
--- a/ci-macos-module/data/userdata.tmpl
+++ b/ci-macos-module/data/userdata.tmpl
@@ -27,17 +27,20 @@ install_pythons() {
DOWNLOAD_DIR=/tmp/python_downloads
PY_VERSIONS=("3.6.2"
- "3.7.0"
- "3.8.2"
- "3.9.1")
+ "3.7.0"
+ "3.8.2"
+ "3.9.1"
+ "3.10.1")
PY_INSTS=("python-3.6.2-macosx10.6.pkg"
"python-3.7.0-macosx10.6.pkg"
"python-3.8.2-macosx10.9.pkg"
- "python-3.9.1-macosx10.9.pkg")
+ "python-3.9.1-macosx10.9.pkg"
+ "python-3.10.1-macos11.pkg")
PY_MMS=("3.6"
"3.7"
"3.8"
- "3.9")
+ "3.9"
+ "3.10")
mkdir -p $DOWNLOAD_DIR
you can make the corresponding change here: ray/python/build-wheel-macos.sh Line 17 in 43a9e95 |
@jjyao great idea I can make a separate PR for the update to grpc specifically. |
@simon-mo thx for this suggestion, added to the commit. Also realized I had forgotten to update the
I think so, let me look at the new build logs and see whats up again. |
|
add patch for newer setuptools, can be removed once grpc 1.44 is release Why are these changes needed? With grpc updated to 1.43, one of the patches is not needed. Patch needed when building locally for newer setuptools version. See grpc/grpc#28392 for more details. Also needed as a prereq to #21221
|
tests failing at installing Looks like |
Sounds good! |
Signed-off-by: acxz <17132214+acxz@users.noreply.github.com>
|
@simon-mo @rkooo567 @pcmoritz @wuisawesome @scv119 @amogkam @krfricke Sorry for pinging all of you folks, but it has been a month since the blocking pytest issue has been cleared and this PR has seen no closure from the Ray Team, besides just redirecting the responsibility to other members of the team. Can we at least get some closure for this PR? The issues that are appearing currently in the CI, I believe are flaky and I have not seem these specific errors throughout the past year this PR has been open. |
|
Thanks @acxz for the feedback. We will prioritize this in the next couple of days |
|
test failures looks unrelated. |
|
@scv119 let's merge this? Thanks |
|
@amogkam @krfricke @richard4912 can code owner approve this? |
|
Woot Woot! Thanks everyone! |
|
Thanks for the amazing work @acxz! |
|
At least for Windows this is not resolved, with Python 3.10 on Windows 10 20H2 i get |
|
What works is |
|
On https://pypi.org/project/ray/#files i can see there are cp310 packages for Linux and MacOS but not for Windows, are they to be supplied in the foreseeable future? |
|
Missing wheel for python 310 on window is fixed in release process and uploaded to pypi for ray 2.2.0. https://pypi.org/project/ray/2.2.0/#files |
|
Nice, well done. Python 3.11 still missing but we are getting there :) |
Why are these changes needed?
Add python 3.10 support.
Related issue number
Closes #19116
Checks
scripts/format.shto lint the changes in this PR.