mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00

* restructure how to organize 3rd party libs * Minor whitespace changes. * Fix compilation on Linux. * Pass around Python executable so that the correct version of Python is used.
63 lines
1.6 KiB
Bash
Executable file
63 lines
1.6 KiB
Bash
Executable file
#!/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."
|
|
|
|
unamestr="$(uname)"
|
|
|
|
##############################################
|
|
# redis
|
|
##############################################
|
|
bash "$TP_SCRIPT_DIR/build_redis.sh"
|
|
|
|
##############################################
|
|
# boost if necessary
|
|
##############################################
|
|
if [[ "$unamestr" == "Linux" ]]; then
|
|
echo "building boost"
|
|
bash "$TP_SCRIPT_DIR/build_boost.sh"
|
|
fi
|
|
|
|
##############################################
|
|
# flatbuffers if necessary
|
|
##############################################
|
|
if [[ "$unamestr" == "Linux" ]]; then
|
|
echo "building flatbuffers"
|
|
bash "$TP_SCRIPT_DIR/build_flatbuffers.sh"
|
|
fi
|
|
|
|
##############################################
|
|
# arrow
|
|
##############################################
|
|
bash "$TP_SCRIPT_DIR/build_arrow.sh" $PYTHON_EXECUTABLE
|
|
|
|
##############################################
|
|
# parquet (skipped as it is inlined in build_arrow.sh)
|
|
##############################################
|
|
# bash "$TP_SCRIPT_DIR/build_parquet.sh"
|
|
|
|
##############################################
|
|
# 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"
|