From ec9dfe7748f603e1bf8fa6e3e5e8473ba14a39c4 Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Thu, 1 Mar 2018 02:17:15 -0800 Subject: [PATCH] Allow setting INCLUDE_UI=0 to disable building the UI. (#1618) --- src/thirdparty/build_ui.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/thirdparty/build_ui.sh b/src/thirdparty/build_ui.sh index 85e89106e..cb906e87f 100755 --- a/src/thirdparty/build_ui.sh +++ b/src/thirdparty/build_ui.sh @@ -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