forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·68 lines (54 loc) · 1.71 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/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."
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."
fi
unamestr="$(uname)"
##############################################
# boost
##############################################
#bash "$TP_SCRIPT_DIR/build_boost.sh"
##############################################
# redis
##############################################
bash "$TP_SCRIPT_DIR/build_redis.sh"
##############################################
# credis
##############################################
bash "$TP_SCRIPT_DIR/build_credis.sh"
##############################################
# flatbuffers if necessary
##############################################
#if [[ "$unamestr" == "Linux" ]]; then
# echo "building flatbuffers"
# bash "$TP_SCRIPT_DIR/build_flatbuffers.sh"
#fi
##############################################
# arrow
##############################################
#RAY_BUILD_PYTHON=$RAY_BUILD_PYTHON \
#RAY_BUILD_JAVA=$RAY_BUILD_JAVA \
#bash "$TP_SCRIPT_DIR/build_arrow.sh" $PYTHON_EXECUTABLE
##############################################
# rDSN (optional)
##############################################
# bash "$TP_SCRIPT_DIR/build_rdsn.sh"
##############################################
# modin
##############################################
bash "$TP_SCRIPT_DIR/build_modin.sh" $PYTHON_EXECUTABLE