Fix py39 bin path for pyenv on MacOS

PiperOrigin-RevId: 360993968
Change-Id: I933411967a70a37919226a16764a8afbb0c59692
This commit is contained in:
Laura Pak 2021-03-04 13:39:56 -08:00 committed by TensorFlower Gardener
parent a3b73ec312
commit 6a2d982fa9
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ export PATH=$PATH:/usr/local/bin
# Run configure.
export CC_OPT_FLAGS='-mavx'
export PYTHON_BIN_PATH=$(which python3.9)
export PYTHON_BIN_PATH=$(which python)
yes "" | "$PYTHON_BIN_PATH" configure.py
# Build the pip package

View File

@ -42,7 +42,7 @@ install_macos_pip_deps
export TF_NEED_CUDA=0
export CC_OPT_FLAGS='-mavx'
export TF2_BEHAVIOR=1
export PYTHON_BIN_PATH=$(which python3.9)
export PYTHON_BIN_PATH=$(which python)
yes "" | "$PYTHON_BIN_PATH" configure.py
tag_filters="-no_oss,-oss_serial,-nomac,-no_mac$(maybe_skip_v1),-gpu,-tpu,-benchmark-test"

View File

@ -44,7 +44,7 @@ export TF_PYTHON_VERSION='python3.9'
export TF_BUILD_BOTH_CPU_PACKAGES=1
# Run configure.
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
export PYTHON_BIN_PATH=$(which python)
yes "" | "$PYTHON_BIN_PATH" configure.py
# Export optional variables for running pip.sh