mirror of
https://github.com/vale981/ray
synced 2025-03-09 12:56:46 -04:00

* Only install ray python packages. * Add some __init__.py files. * Install Ray before building documentation. * Fix install-ray.sh. * Fix.
33 lines
625 B
Bash
Executable file
33 lines
625 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Cause the script to exit if a single command fails.
|
|
set -e
|
|
|
|
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
|
|
|
echo "PYTHON is $PYTHON"
|
|
|
|
if [[ "$PYTHON" == "2.7" ]]; then
|
|
|
|
pushd "$ROOT_DIR/../python"
|
|
sudo python setup.py install
|
|
popd
|
|
|
|
elif [[ "$PYTHON" == "3.5" ]]; then
|
|
export PATH="$HOME/miniconda/bin:$PATH"
|
|
|
|
pushd "$ROOT_DIR/../python"
|
|
python setup.py install --user
|
|
popd
|
|
|
|
elif [[ "$LINT" == "1" ]]; then
|
|
export PATH="$HOME/miniconda/bin:$PATH"
|
|
|
|
pushd "$ROOT_DIR/../python"
|
|
python setup.py install --user
|
|
popd
|
|
|
|
else
|
|
echo "Unrecognized Python version."
|
|
exit 1
|
|
fi
|