mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
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:
parent
807f309b3a
commit
c0b4c3b6cf
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue