mirror of
https://github.com/vale981/ray
synced 2025-03-05 10:01:43 -05:00
Add support for Python 3.9 (#12613)
This commit is contained in:
parent
1f4d4dfeb0
commit
208cde8d9b
5 changed files with 33 additions and 15 deletions
|
@ -83,7 +83,7 @@ if [[ "$platform" == "linux" ]]; then
|
|||
|
||||
# Check that the other wheels are present.
|
||||
NUMBER_OF_WHEELS="$(find "$ROOT_DIR"/../../.whl/ -mindepth 1 -maxdepth 1 -name "*.whl" | wc -l)"
|
||||
if [[ "$NUMBER_OF_WHEELS" != "3" ]]; then
|
||||
if [[ "$NUMBER_OF_WHEELS" != "4" ]]; then
|
||||
echo "Wrong number of wheels found."
|
||||
ls -l "$ROOT_DIR/../.whl/"
|
||||
exit 2
|
||||
|
@ -91,10 +91,11 @@ if [[ "$platform" == "linux" ]]; then
|
|||
|
||||
elif [[ "$platform" == "macosx" ]]; then
|
||||
MACPYTHON_PY_PREFIX=/Library/Frameworks/Python.framework/Versions
|
||||
PY_WHEEL_VERSIONS=("36" "37" "38")
|
||||
PY_WHEEL_VERSIONS=("36" "37" "38" "39")
|
||||
PY_MMS=("3.6"
|
||||
"3.7"
|
||||
"3.8")
|
||||
"3.8"
|
||||
"3.9")
|
||||
|
||||
for ((i=0; i<${#PY_MMS[@]}; ++i)); do
|
||||
PY_MM="${PY_MMS[i]}"
|
||||
|
|
|
@ -32,19 +32,27 @@ You can install the nightly Ray wheels via the following links. These daily rele
|
|||
=================== =================== ======================
|
||||
Linux MacOS Windows (experimental)
|
||||
=================== =================== ======================
|
||||
`Linux Python 3.9`_ `MacOS Python 3.9`_ `Windows Python 3.9`_
|
||||
`Linux Python 3.8`_ `MacOS Python 3.8`_ `Windows Python 3.8`_
|
||||
`Linux Python 3.7`_ `MacOS Python 3.7`_ `Windows Python 3.7`_
|
||||
`Linux Python 3.6`_ `MacOS Python 3.6`_ `Windows Python 3.6`_
|
||||
=================== =================== ======================
|
||||
|
||||
.. note::
|
||||
|
||||
Python 3.9 support is currently experimental.
|
||||
|
||||
.. _`Linux Python 3.9`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-manylinux2014_x86_64.whl
|
||||
.. _`Linux Python 3.8`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp38-cp38-manylinux2014_x86_64.whl
|
||||
.. _`Linux Python 3.7`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp37-cp37m-manylinux2014_x86_64.whl
|
||||
.. _`Linux Python 3.6`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp36-cp36m-manylinux2014_x86_64.whl
|
||||
|
||||
.. _`MacOS Python 3.9`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-macosx_10_13_x86_64.whl
|
||||
.. _`MacOS Python 3.8`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp38-cp38-macosx_10_13_x86_64.whl
|
||||
.. _`MacOS Python 3.7`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp37-cp37m-macosx_10_13_intel.whl
|
||||
.. _`MacOS Python 3.6`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp36-cp36m-macosx_10_13_intel.whl
|
||||
|
||||
.. _`Windows Python 3.9`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl
|
||||
.. _`Windows Python 3.8`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp38-cp38-win_amd64.whl
|
||||
.. _`Windows Python 3.7`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp37-cp37m-win_amd64.whl
|
||||
.. _`Windows Python 3.6`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp36-cp36m-win_amd64.whl
|
||||
|
|
|
@ -16,19 +16,21 @@ DOWNLOAD_DIR=python_downloads
|
|||
NODE_VERSION="14"
|
||||
PY_VERSIONS=("3.6.1"
|
||||
"3.7.0"
|
||||
"3.8.2")
|
||||
"3.8.2"
|
||||
"3.9.1")
|
||||
PY_INSTS=("python-3.6.1-macosx10.6.pkg"
|
||||
"python-3.7.0-macosx10.6.pkg"
|
||||
"python-3.8.2-macosx10.9.pkg")
|
||||
"python-3.8.2-macosx10.9.pkg"
|
||||
"python-3.9.1-macosx10.9.pkg")
|
||||
PY_MMS=("3.6"
|
||||
"3.7"
|
||||
"3.8")
|
||||
"3.8"
|
||||
"3.9")
|
||||
|
||||
# The minimum supported numpy version is 1.14, see
|
||||
# https://issues.apache.org/jira/browse/ARROW-3141
|
||||
NUMPY_VERSIONS=("1.14.5"
|
||||
"1.14.5"
|
||||
"1.14.5")
|
||||
"1.14.5"
|
||||
"1.19.3")
|
||||
|
||||
./ci/travis/install-bazel.sh
|
||||
|
||||
|
|
|
@ -14,13 +14,13 @@ chmod +x /usr/bin/nproc
|
|||
NODE_VERSION="14"
|
||||
PYTHONS=("cp36-cp36m"
|
||||
"cp37-cp37m"
|
||||
"cp38-cp38")
|
||||
"cp38-cp38"
|
||||
"cp39-cp39")
|
||||
|
||||
# The minimum supported numpy version is 1.14, see
|
||||
# https://issues.apache.org/jira/browse/ARROW-3141
|
||||
NUMPY_VERSIONS=("1.14.5"
|
||||
"1.14.5"
|
||||
"1.14.5")
|
||||
"1.14.5"
|
||||
"1.19.3")
|
||||
|
||||
yum -y install unzip zip sudo
|
||||
yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel xz
|
||||
|
|
|
@ -27,7 +27,7 @@ logger = logging.getLogger(__name__)
|
|||
# before these files have been created, so we have to move the files
|
||||
# manually.
|
||||
|
||||
SUPPORTED_PYTHONS = [(3, 6), (3, 7), (3, 8)]
|
||||
SUPPORTED_PYTHONS = [(3, 6), (3, 7), (3, 8), (3, 9)]
|
||||
SUPPORTED_BAZEL = (3, 2, 0)
|
||||
|
||||
ROOT_DIR = os.path.dirname(__file__)
|
||||
|
@ -130,7 +130,8 @@ install_requires = [
|
|||
"grpcio >= 1.28.1",
|
||||
"jsonschema",
|
||||
"msgpack >= 1.0.0, < 2.0.0",
|
||||
"numpy >= 1.16",
|
||||
"numpy >= 1.16; python_version < '3.9'",
|
||||
"numpy >= 1.19.3; python_version >= '3.9'",
|
||||
"protobuf >= 3.15.3",
|
||||
"py-spy >= 0.2.0",
|
||||
"pyyaml",
|
||||
|
@ -431,6 +432,12 @@ setuptools.setup(
|
|||
url="https://github.com/ray-project/ray",
|
||||
keywords=("ray distributed parallel machine-learning hyperparameter-tuning"
|
||||
"reinforcement-learning deep-learning serving python"),
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
],
|
||||
packages=setuptools.find_packages(),
|
||||
cmdclass={"build_ext": build_ext},
|
||||
# The BinaryDistribution argument triggers build_ext.
|
||||
|
|
Loading…
Add table
Reference in a new issue