mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 16:54:21 +08: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:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user