mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
37 lines
746 B
Bash
Executable file
37 lines
746 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"
|
|
|
|
cython_examples="$ROOT_DIR/../examples/cython"
|
|
|
|
if [[ "$PYTHON" == "2.7" ]]; then
|
|
|
|
pushd $cython_examples
|
|
pip install --progress-bar=off scipy
|
|
python setup.py install --user
|
|
popd
|
|
|
|
elif [[ "$PYTHON" == "3.5" ]]; then
|
|
export PATH="$HOME/miniconda/bin:$PATH"
|
|
|
|
pushd $cython_examples
|
|
pip install --progress-bar=off scipy
|
|
python setup.py install --user
|
|
popd
|
|
|
|
elif [[ "$LINT" == "1" ]]; then
|
|
export PATH="$HOME/miniconda/bin:$PATH"
|
|
|
|
pushd $cython_examples
|
|
python setup.py install --user
|
|
popd
|
|
|
|
else
|
|
echo "Unrecognized Python version."
|
|
exit 1
|
|
fi
|