Allow Ray to be built without UI by setting INCLUDE_UI=0. (#1094)

* Allow building Ray without UI by setting INCLUDE_UI=0.

* Fix bash.

* Fix linting.
This commit is contained in:
Robert Nishihara
2017-10-09 23:32:38 -07:00
committed by Philipp Moritz
parent 3944e9a450
commit 8f1a73f041
2 changed files with 23 additions and 3 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ 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 [ ! type python2 > /dev/null ]; then
if ! type python2 > /dev/null; then
echo "cannot properly set up UI without a python2 executable"
if [[ "$INCLUDE_UI" == "1" ]]; then
# Since the UI is explicitly supposed to be included, fail here.