mirror of
https://github.com/wassname/ray.git
synced 2026-07-05 19:58:40 +08:00
Fix that parquet and arrow will build every time. (#2405)
* Fix the bug that parquet and arrow will build every time. * Update build_arrow.sh * Update build_arrow.sh
This commit is contained in:
committed by
Philipp Moritz
parent
0cecf6b79c
commit
e3badb9b09
Vendored
+6
-1
@@ -149,13 +149,18 @@ if [[ ! -d $TP_DIR/../python/ray/pyarrow_files/pyarrow ]] || \
|
||||
[[ "$LANGUAGE" == "java" && ! -f $TP_DIR/build/arrow/cpp/build/release/libplasma_java.dylib ]]; then
|
||||
build_arrow
|
||||
else
|
||||
REBUILD=off
|
||||
pushd $TP_DIR/build/arrow
|
||||
if [[ "$TARGET_COMMIT_ID" != `git rev-parse HEAD` ]]; then
|
||||
# TARGET_COMMIT_ID may change to later commit.
|
||||
echo "Commit ID mismatches."
|
||||
git fetch origin master
|
||||
git checkout $TARGET_COMMIT_ID
|
||||
REBUILD=on
|
||||
fi
|
||||
popd
|
||||
build_arrow
|
||||
|
||||
if [[ "$REBUILD" == "on" ]]; then
|
||||
build_arrow
|
||||
fi
|
||||
fi
|
||||
|
||||
Vendored
+1
-1
@@ -65,8 +65,8 @@ else
|
||||
echo "Commit ID mismatches."
|
||||
git fetch origin master
|
||||
git checkout $TARGET_COMMIT_ID
|
||||
build_parquet
|
||||
fi
|
||||
|
||||
build_parquet
|
||||
popd
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user