ray/.travis/install-cython-examples.sh
Daniel Suo 4f0da6f81c Add basic functionality for Cython functions and actors (#1193)
* Add basic functionality for Cython functions and actors

* Fix up per @pcmoritz comments

* Fixes per @richardliaw comments

* Fixes per @robertnishihara comments

* Forgot double quotes when updating masked_log

* Remove import typing for Python 2 compatibility
2017-11-09 17:49:06 -08:00

37 lines
708 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 scipy
python setup.py install --user
popd
elif [[ "$PYTHON" == "3.5" ]]; then
export PATH="$HOME/miniconda/bin:$PATH"
pushd $cython_examples
pip install 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