ray/setup_thirdparty.sh
Yuhong Guo 4bd98eed45 Support building Java and Python version at the same time. (#2640)
* Support building Java and Python version at the same time.

* Remove duplicated definition.

* Refine the building process of local_scheduler

* Refine

* Add comment for languages

* Modify instruction and add python,jave building to CI.

* change according to comment
2018-08-14 11:33:51 -07:00

24 lines
564 B
Bash
Executable file

#!/bin/bash
set -x
# Cause the script to exit if a single command fails.
set -e
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
if [[ -z "$1" ]]; then
PYTHON_EXECUTABLE=`which python`
else
PYTHON_EXECUTABLE=$1
fi
echo "Using Python executable $PYTHON_EXECUTABLE."
RAY_BUILD_PYTHON=$RAY_BUILD_PYTHON \
RAY_BUILD_JAVA=$RAY_BUILD_JAVA \
$ROOT_DIR/thirdparty/scripts/setup.sh $PYTHON_EXECUTABLE
if [[ "$RAY_BUILD_JAVA" == "YES" ]]; then
pushd $ROOT_DIR/thirdparty/build/arrow/java
mvn clean install -pl plasma -am -Dmaven.test.skip
popd
fi