Use absolute path to get to thirdparty dir (#2442)

* Use absolute path to get to thirdparty dir

In case this script is executed from a different directory than the Ray's directory, the `pushd` will fail. This commit uses absolute path to `thirdparty` directory.

* Update setup_thirdparty.sh
This commit is contained in:
nam-cern 2018-07-21 00:12:25 +02:00 committed by Philipp Moritz
parent 807f309b3a
commit c0b4c3b6cf

View file

@ -4,7 +4,7 @@ set -x
# Cause the script to exit if a single command fails.
set -e
TP_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
if [[ -z "$1" ]]; then
PYTHON_EXECUTABLE=`which python`
@ -18,10 +18,10 @@ if [[ -n "$2" ]]; then
LANGUAGE=$2
fi
$TP_DIR/thirdparty/scripts/setup.sh $PYTHON_EXECUTABLE $LANGUAGE
$ROOT_DIR/thirdparty/scripts/setup.sh $PYTHON_EXECUTABLE $LANGUAGE
if [[ "$LANGUAGE" == "java" ]]; then
pushd thirdparty/build/arrow/java
pushd $ROOT_DIR/thirdparty/build/arrow/java
mvn clean install -pl plasma -am -Dmaven.test.skip
popd
fi