ray/build.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
445 B
Bash
Raw Normal View History

2016-06-22 11:42:04 -07:00
#!/usr/bin/env bash
if [ "${OSTYPE}" = msys ]; then
echo "WARNING: ${0##*/} is not recommended on MSYS2, as MSYS2 alters the build environment."
2016-06-25 14:02:33 -07:00
fi
if [ -z "${PYTHON3_BIN_PATH-}" ]; then
PYTHON3_BIN_PATH="$(command -v python3 || command -v python || echo python)"
fi
BAZEL_SH="${SHELL}" exec \
"${PYTHON3_BIN_PATH}" -c \
"import runpy, sys; runpy.run_path(sys.argv.pop(), run_name='__api__')" \
build "$@" "${0%/*}"/python/setup.py