2017-11-09 20:49:06 -05:00
|
|
|
#!/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"
|
|
|
|
|
2019-08-08 23:35:55 -07:00
|
|
|
cython_examples="$ROOT_DIR/../../doc/examples/cython"
|
2017-11-09 20:49:06 -05:00
|
|
|
|
2019-12-27 20:47:49 -08:00
|
|
|
if [[ "$PYTHON" == "3.5" ]]; then
|
2017-11-09 20:49:06 -05:00
|
|
|
export PATH="$HOME/miniconda/bin:$PATH"
|
|
|
|
|
|
|
|
pushd $cython_examples
|
2018-08-16 13:54:35 +08:00
|
|
|
pip install --progress-bar=off scipy
|
2017-11-09 20:49:06 -05:00
|
|
|
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
|