mirror of
https://github.com/wassname/ray.git
synced 2026-07-24 13:20:22 +08:00
Build wheels for macOS with Bazel (#4280)
This commit is contained in:
committed by
Robert Nishihara
parent
93d9867290
commit
c5e2c9af4d
+2
-2
@@ -114,9 +114,9 @@ matrix:
|
||||
# Build MacOS wheels.
|
||||
- os: osx
|
||||
osx_image: xcode7
|
||||
env: MAC_WHEELS=1 PYTHONWARNINGS=ignore RAY_USE_CMAKE=1
|
||||
env: MAC_WHEELS=1 PYTHONWARNINGS=ignore
|
||||
install:
|
||||
- ./ci/travis/install-dependencies.sh
|
||||
- ./ci/suppress_output ./ci/travis/install-dependencies.sh
|
||||
# This command should be kept in sync with ray/python/README-building-wheels.md.
|
||||
- ./python/build-wheel-macos.sh
|
||||
script:
|
||||
|
||||
@@ -29,7 +29,6 @@ Here are links to the latest wheels (which are built off of master). To install
|
||||
`Linux Python 3.7`_ `MacOS Python 3.7`_
|
||||
`Linux Python 3.6`_ `MacOS Python 3.6`_
|
||||
`Linux Python 3.5`_ `MacOS Python 3.5`_
|
||||
`Linux Python 3.4`_ `MacOS Python 3.4`_
|
||||
`Linux Python 2.7`_ `MacOS Python 2.7`_
|
||||
=================== ===================
|
||||
|
||||
@@ -37,12 +36,10 @@ Here are links to the latest wheels (which are built off of master). To install
|
||||
.. _`Linux Python 3.7`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.7.0.dev1-cp37-cp37m-manylinux1_x86_64.whl
|
||||
.. _`Linux Python 3.6`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.7.0.dev1-cp36-cp36m-manylinux1_x86_64.whl
|
||||
.. _`Linux Python 3.5`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.7.0.dev1-cp35-cp35m-manylinux1_x86_64.whl
|
||||
.. _`Linux Python 3.4`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.7.0.dev1-cp34-cp34m-manylinux1_x86_64.whl
|
||||
.. _`Linux Python 2.7`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.7.0.dev1-cp27-cp27mu-manylinux1_x86_64.whl
|
||||
.. _`MacOS Python 3.7`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.7.0.dev1-cp37-cp37m-macosx_10_6_intel.whl
|
||||
.. _`MacOS Python 3.6`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.7.0.dev1-cp36-cp36m-macosx_10_6_intel.whl
|
||||
.. _`MacOS Python 3.5`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.7.0.dev1-cp35-cp35m-macosx_10_6_intel.whl
|
||||
.. _`MacOS Python 3.4`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.7.0.dev1-cp34-cp34m-macosx_10_6_intel.whl
|
||||
.. _`MacOS Python 2.7`: https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.7.0.dev1-cp27-cp27m-macosx_10_6_intel.whl
|
||||
|
||||
|
||||
|
||||
@@ -14,27 +14,27 @@ MACPYTHON_PY_PREFIX=/Library/Frameworks/Python.framework/Versions
|
||||
DOWNLOAD_DIR=python_downloads
|
||||
|
||||
PY_VERSIONS=("2.7.13"
|
||||
"3.4.4"
|
||||
"3.5.3"
|
||||
"3.6.1"
|
||||
"3.7.0")
|
||||
PY_INSTS=("python-2.7.13-macosx10.6.pkg"
|
||||
"python-3.4.4-macosx10.6.pkg"
|
||||
"python-3.5.3-macosx10.6.pkg"
|
||||
"python-3.6.1-macosx10.6.pkg"
|
||||
"python-3.7.0-macosx10.6.pkg")
|
||||
PY_MMS=("2.7"
|
||||
"3.4"
|
||||
"3.5"
|
||||
"3.6"
|
||||
"3.7")
|
||||
# On python 3.7, a newer version of numpy seems to be necessary.
|
||||
NUMPY_VERSIONS=("1.10.4"
|
||||
"1.10.4"
|
||||
"1.10.4"
|
||||
"1.10.4"
|
||||
|
||||
# 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")
|
||||
|
||||
./ci/travis/install-bazel.sh
|
||||
|
||||
mkdir -p $DOWNLOAD_DIR
|
||||
mkdir -p .whl
|
||||
|
||||
|
||||
@@ -11,10 +11,11 @@ PYTHONS=("cp27-cp27mu"
|
||||
"cp36-cp36m"
|
||||
"cp37-cp37m")
|
||||
|
||||
# On python 3.7, a newer version of numpy seems to be necessary.
|
||||
NUMPY_VERSIONS=("1.10.4"
|
||||
"1.10.4"
|
||||
"1.10.4"
|
||||
# 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")
|
||||
|
||||
sudo apt-get install unzip
|
||||
|
||||
+1
-1
@@ -137,7 +137,7 @@ def find_version(*filepath):
|
||||
|
||||
|
||||
requires = [
|
||||
"numpy >= 1.10.4",
|
||||
"numpy >= 1.14",
|
||||
"filelock",
|
||||
"funcsigs",
|
||||
"click",
|
||||
|
||||
Reference in New Issue
Block a user