mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 21:08:13 +08:00
Fix build error when building Ray for Java later than Python (#2241)
This commit is contained in:
committed by
Robert Nishihara
parent
be178ae031
commit
78a48fa1e0
Vendored
+9
-1
@@ -41,9 +41,17 @@ else
|
||||
fi
|
||||
|
||||
# Download and compile arrow if it isn't already present.
|
||||
if [[ ! -d $TP_DIR/../python/ray/pyarrow_files/pyarrow ]]; then
|
||||
if [[ ! -d $TP_DIR/../python/ray/pyarrow_files/pyarrow || \
|
||||
"$LANGUAGE" == "java" && ! -f $TP_DIR/../build/src/plasma/libplasma_java.dylib ]]; then
|
||||
echo "building arrow"
|
||||
|
||||
# Make sure arrow will be built again when building ray for java later than python
|
||||
if [[ "$LANGUAGE" == "java" ]]; then
|
||||
rm -rf $TP_DIR/build/arrow
|
||||
rm -rf $TP_DIR/build/parquet-cpp
|
||||
rm -rf $TP_DIR/pkg/arrow
|
||||
fi
|
||||
|
||||
if [[ ! -d $TP_DIR/build/arrow ]]; then
|
||||
git clone https://github.com/apache/arrow.git "$TP_DIR/build/arrow"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user