From 641f70387908cef2f69fd60a29b7780a7c8540f4 Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Tue, 26 Feb 2019 23:07:43 -0800 Subject: [PATCH] =?UTF-8?q?Update=20installation=20instructions=20to=20inc?= =?UTF-8?q?lude=20bazel=20and=20remove=20outdated=E2=80=A6=20(#4171)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/travis/install-dependencies.sh | 16 +++++++--------- doc/source/installation.rst | 17 ++++++++++------- java/doc/installation.rst | 10 +++++----- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/ci/travis/install-dependencies.sh b/ci/travis/install-dependencies.sh index b848a0bc3..77878247a 100755 --- a/ci/travis/install-dependencies.sh +++ b/ci/travis/install-dependencies.sh @@ -19,22 +19,22 @@ fi if [[ "$PYTHON" == "2.7" ]] && [[ "$platform" == "linux" ]]; then sudo apt-get update - sudo apt-get install -y cmake pkg-config build-essential autoconf curl libtool python-dev python-numpy python-pip unzip tmux gdb + sudo apt-get install -y build-essential curl python-dev python-numpy python-pip unzip tmux gdb # Install miniconda. wget https://repo.continuum.io/miniconda/Miniconda2-4.5.4-Linux-x86_64.sh -O miniconda.sh -nv bash miniconda.sh -b -p $HOME/miniconda export PATH="$HOME/miniconda/bin:$PATH" - pip install -q cython==0.29.0 cmake gym==0.10.11 opencv-python-headless pyyaml pandas==0.23.4 requests \ + pip install -q cython==0.29.0 gym==0.10.11 opencv-python-headless pyyaml pandas==0.23.4 requests \ feather-format lxml openpyxl xlrd py-spy setproctitle faulthandler pytest-timeout mock flaky networkx conda install -y scipy tensorflow elif [[ "$PYTHON" == "3.5" ]] && [[ "$platform" == "linux" ]]; then sudo apt-get update - sudo apt-get install -y cmake pkg-config python-dev python-numpy build-essential autoconf curl libtool unzip tmux gdb + sudo apt-get install -y python-dev python-numpy build-essential curl unzip tmux gdb # Install miniconda. wget https://repo.continuum.io/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh -O miniconda.sh -nv bash miniconda.sh -b -p $HOME/miniconda export PATH="$HOME/miniconda/bin:$PATH" - pip install -q cython==0.29.0 cmake gym opencv-python-headless pyyaml pandas==0.23.4 requests \ + pip install -q cython==0.29.0 gym opencv-python-headless pyyaml pandas==0.23.4 requests \ feather-format lxml openpyxl xlrd py-spy setproctitle pytest-timeout flaky networkx conda install -y scipy tensorflow elif [[ "$PYTHON" == "2.7" ]] && [[ "$platform" == "macosx" ]]; then @@ -47,12 +47,11 @@ elif [[ "$PYTHON" == "2.7" ]] && [[ "$platform" == "macosx" ]]; then echo "Updating brew." brew update > /dev/null fi - brew install cmake pkg-config automake autoconf libtool openssl bison > /dev/null # Install miniconda. wget https://repo.continuum.io/miniconda/Miniconda2-4.5.4-MacOSX-x86_64.sh -O miniconda.sh -nv bash miniconda.sh -b -p $HOME/miniconda export PATH="$HOME/miniconda/bin:$PATH" - pip install -q cython==0.29.0 cmake tensorflow gym==0.10.11 opencv-python-headless pyyaml pandas==0.23.4 requests \ + pip install -q cython==0.29.0 tensorflow gym==0.10.11 opencv-python-headless pyyaml pandas==0.23.4 requests \ feather-format lxml openpyxl xlrd py-spy setproctitle faulthandler pytest-timeout mock flaky networkx elif [[ "$PYTHON" == "3.5" ]] && [[ "$platform" == "macosx" ]]; then # check that brew is installed @@ -64,16 +63,15 @@ elif [[ "$PYTHON" == "3.5" ]] && [[ "$platform" == "macosx" ]]; then echo "Updating brew." brew update > /dev/null fi - brew install cmake pkg-config automake autoconf libtool openssl bison > /dev/null # Install miniconda. wget https://repo.continuum.io/miniconda/Miniconda3-4.5.4-MacOSX-x86_64.sh -O miniconda.sh -nv bash miniconda.sh -b -p $HOME/miniconda export PATH="$HOME/miniconda/bin:$PATH" - pip install -q cython==0.29.0 cmake tensorflow gym opencv-python-headless pyyaml pandas==0.23.4 requests \ + pip install -q cython==0.29.0 tensorflow gym opencv-python-headless pyyaml pandas==0.23.4 requests \ feather-format lxml openpyxl xlrd py-spy setproctitle pytest-timeout flaky networkx elif [[ "$LINT" == "1" ]]; then sudo apt-get update - sudo apt-get install -y cmake build-essential autoconf curl libtool unzip + sudo apt-get install -y build-essential curl unzip # Install miniconda. wget https://repo.continuum.io/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh -O miniconda.sh -nv bash miniconda.sh -b -p $HOME/miniconda diff --git a/doc/source/installation.rst b/doc/source/installation.rst index 2b5f19f8c..a54c5405c 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -1,7 +1,8 @@ Installing Ray ============== -Ray should work with Python 2 and Python 3. We have tested Ray on Ubuntu 14.04, Ubuntu 16.04, OS X 10.11 and 10.12. +Ray should work with Python 2 and Python 3. We have tested Ray on Ubuntu 14.04, Ubuntu 16.04, Ubuntu 18.04, +MacOS 10.11, 10.12, 10.13, and 10.14. Latest stable version --------------------- @@ -48,7 +49,8 @@ Here are links to the latest wheels (which are built off of master). To install Building Ray from source ------------------------ -If you want to use the latest version of Ray, you can build it from source. Below, we have instructions for installing dependencies and building from source for both Linux and MacOS. +If you want to use the latest version of Ray, you can build it from source. +Below, we have instructions for building from source for both Linux and MacOS. Dependencies ~~~~~~~~~~~~ @@ -63,15 +65,12 @@ For Ubuntu, run the following commands: .. code-block:: bash sudo apt-get update - sudo apt-get install -y cmake pkg-config build-essential autoconf curl libtool unzip flex bison psmisc python # we install python here because python2 is required to build the webui + sudo apt-get install -y build-essential curl unzip psmisc python # we install python here because python2 is required to build the webui # If you are not using Anaconda, you need the following. sudo apt-get install python-dev # For Python 2. sudo apt-get install python3-dev # For Python 3. - # If you are on Ubuntu 14.04, you need the following. - pip install cmake - pip install cython==0.29.0 For MacOS, run the following commands: @@ -79,7 +78,7 @@ For MacOS, run the following commands: .. code-block:: bash brew update - brew install cmake pkg-config automake autoconf libtool openssl bison wget + brew install wget pip install cython==0.29.0 @@ -99,6 +98,10 @@ Ray can be built from the repository as follows. .. code-block:: bash git clone https://github.com/ray-project/ray.git + + # Install Bazel. + ray/ci/travis/install-bazel.sh + cd ray/python pip install -e . --verbose # Add --user if you see a permission denied error. diff --git a/java/doc/installation.rst b/java/doc/installation.rst index 54be4094b..f2cc1c5ef 100644 --- a/java/doc/installation.rst +++ b/java/doc/installation.rst @@ -17,22 +17,19 @@ For Ubuntu users, run the following commands: :: sudo apt-get update - sudo apt-get install -y maven cmake pkg-config build-essential autoconf curl libtool unzip flex bison psmisc python # we install python here because python2 is required to build the webui + sudo apt-get install -y maven build-essential curl unzip psmisc python # we install python here because python2 is required to build the webui # If you are not using Anaconda, you need the following. sudo apt-get install python-dev # For Python 2. sudo apt-get install python3-dev # For Python 3. - # If you are on Ubuntu 14.04, you need the following. - pip install cmake - pip install cython==0.29.0 For macOS users, run the following commands: :: brew update - brew install maven cmake pkg-config automake autoconf libtool openssl bison wget + brew install maven wget pip install cython==0.29.0 @@ -45,6 +42,9 @@ Then we can start building Ray with the following commands: git clone https://github.com/ray-project/ray.git cd ray + # Install Bazel. + ci/travis/install-bazel.sh + # build native components ./build.sh -l java