Allow setting INCLUDE_UI=0 to disable building the UI. (#1618)

This commit is contained in:
Robert Nishihara
2018-03-01 02:17:15 -08:00
committed by Philipp Moritz
parent 1222d09224
commit ec9dfe7748
+5
View File
@@ -16,6 +16,11 @@ CATAPULT_FILES=$TP_DIR/../../python/ray/core/src/catapult_files
# This is where we will copy the files that need to be packaged with the wheels.
mkdir -p $CATAPULT_FILES
if [[ "$INCLUDE_UI" == "0" ]]; then
# Let installation continue without building the UI.
exit 0
fi
if ! type python2 > /dev/null; then
echo "cannot properly set up UI without a python2 executable"
if [[ "$INCLUDE_UI" == "1" ]]; then