mirror of
https://github.com/tensorflow/tensorflow.git
synced 2024-11-21 21:05:19 +00:00
5ba24e758e
`which python` may direct to python2. make `which python3` ahead of `which python` may be better.
16 lines
285 B
Bash
Executable File
16 lines
285 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
if [ -z "$PYTHON_BIN_PATH" ]; then
|
|
PYTHON_BIN_PATH=$(which python3 || which python || true)
|
|
fi
|
|
|
|
# Set all env variables
|
|
CONFIGURE_DIR=$(dirname "$0")
|
|
"$PYTHON_BIN_PATH" "${CONFIGURE_DIR}/configure.py" "$@"
|
|
|
|
echo "Configuration finished"
|
|
|