2018-03-01 14:29:56 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# Cause the script to exit if a single command fails.
|
|
|
|
set -e
|
|
|
|
|
|
|
|
TP_SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
|
|
|
TP_DIR=$TP_SCRIPT_DIR/..
|
|
|
|
|
|
|
|
mkdir -p $TP_DIR/build
|
|
|
|
mkdir -p $TP_DIR/pkg
|
|
|
|
|
|
|
|
if [[ -z "$1" ]]; then
|
|
|
|
PYTHON_EXECUTABLE=`which python`
|
|
|
|
else
|
|
|
|
PYTHON_EXECUTABLE=$1
|
|
|
|
fi
|
|
|
|
echo "Using Python executable $PYTHON_EXECUTABLE."
|
|
|
|
|
2018-08-15 02:33:51 +08:00
|
|
|
if [[ "$RAY_BUILD_JAVA" == "YES" ]]; then
|
|
|
|
echo "Java library will be built."
|
|
|
|
fi
|
|
|
|
if [[ "$RAY_BUILD_PYTHON" == "YES" ]]; then
|
|
|
|
echo "Python library will be built."
|
2018-05-27 05:38:50 +08:00
|
|
|
fi
|
|
|
|
|
2018-03-01 14:29:56 -08:00
|
|
|
unamestr="$(uname)"
|
|
|
|
|
2018-06-22 06:18:00 +08:00
|
|
|
##############################################
|
|
|
|
# boost
|
|
|
|
##############################################
|
update ray cmake build process (#2853)
* use cmake to build ray project, no need to appply build.sh before cmake, fix some abuse of cmake, improve the build performance
* support boost external project, avoid using the system or build.sh boost
* keep compatible with build.sh, remove boost and arrow build from it.
* bugfix: parquet bison version control, plasma_java lib install problem
* bugfix: cmake, do not compile plasma java client if no need
* bugfix: component failures test timeout machenism has problem for plasma manager failed case
* bugfix: arrow use lib64 in centos, travis check-git-clang-format-output.sh does not support other branches except master
* revert some fix
* set arrow python executable, fix format error in component_failures_test.py
* make clean arrow python build directory
* update cmake code style, back to support cmake minimum version 3.4
2018-09-13 02:19:33 +08:00
|
|
|
#bash "$TP_SCRIPT_DIR/build_boost.sh"
|
2018-06-22 06:18:00 +08:00
|
|
|
|
2018-03-01 14:29:56 -08:00
|
|
|
##############################################
|
|
|
|
# redis
|
|
|
|
##############################################
|
|
|
|
bash "$TP_SCRIPT_DIR/build_redis.sh"
|
|
|
|
|
2018-03-07 10:18:58 -08:00
|
|
|
##############################################
|
|
|
|
# credis
|
|
|
|
##############################################
|
|
|
|
bash "$TP_SCRIPT_DIR/build_credis.sh"
|
|
|
|
|
2018-03-01 14:29:56 -08:00
|
|
|
##############################################
|
|
|
|
# flatbuffers if necessary
|
|
|
|
##############################################
|
update ray cmake build process (#2853)
* use cmake to build ray project, no need to appply build.sh before cmake, fix some abuse of cmake, improve the build performance
* support boost external project, avoid using the system or build.sh boost
* keep compatible with build.sh, remove boost and arrow build from it.
* bugfix: parquet bison version control, plasma_java lib install problem
* bugfix: cmake, do not compile plasma java client if no need
* bugfix: component failures test timeout machenism has problem for plasma manager failed case
* bugfix: arrow use lib64 in centos, travis check-git-clang-format-output.sh does not support other branches except master
* revert some fix
* set arrow python executable, fix format error in component_failures_test.py
* make clean arrow python build directory
* update cmake code style, back to support cmake minimum version 3.4
2018-09-13 02:19:33 +08:00
|
|
|
#if [[ "$unamestr" == "Linux" ]]; then
|
|
|
|
# echo "building flatbuffers"
|
|
|
|
# bash "$TP_SCRIPT_DIR/build_flatbuffers.sh"
|
|
|
|
#fi
|
2018-03-01 14:29:56 -08:00
|
|
|
|
|
|
|
##############################################
|
|
|
|
# arrow
|
|
|
|
##############################################
|
update ray cmake build process (#2853)
* use cmake to build ray project, no need to appply build.sh before cmake, fix some abuse of cmake, improve the build performance
* support boost external project, avoid using the system or build.sh boost
* keep compatible with build.sh, remove boost and arrow build from it.
* bugfix: parquet bison version control, plasma_java lib install problem
* bugfix: cmake, do not compile plasma java client if no need
* bugfix: component failures test timeout machenism has problem for plasma manager failed case
* bugfix: arrow use lib64 in centos, travis check-git-clang-format-output.sh does not support other branches except master
* revert some fix
* set arrow python executable, fix format error in component_failures_test.py
* make clean arrow python build directory
* update cmake code style, back to support cmake minimum version 3.4
2018-09-13 02:19:33 +08:00
|
|
|
#RAY_BUILD_PYTHON=$RAY_BUILD_PYTHON \
|
|
|
|
#RAY_BUILD_JAVA=$RAY_BUILD_JAVA \
|
|
|
|
#bash "$TP_SCRIPT_DIR/build_arrow.sh" $PYTHON_EXECUTABLE
|
2018-03-01 14:29:56 -08:00
|
|
|
|
|
|
|
##############################################
|
|
|
|
# catapult
|
|
|
|
##############################################
|
|
|
|
# Clone catapult and build the static HTML needed for the UI.
|
|
|
|
bash "$TP_SCRIPT_DIR/build_ui.sh"
|
|
|
|
|
|
|
|
##############################################
|
|
|
|
# rDSN (optional)
|
|
|
|
##############################################
|
|
|
|
# bash "$TP_SCRIPT_DIR/build_rdsn.sh"
|