Skip to content

Commit

Permalink
fix nightly package installation for tf.text ci jobs
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 641960415
  • Loading branch information
vam-google authored and tf-text-github-robot committed Jun 10, 2024
1 parent 0fa2435 commit 7e2412c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
11 changes: 11 additions & 0 deletions oss_scripts/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ elif (which python) | grep -q "python"; then
installed_python="python"
fi

HERMETIC_PYTHON_VERSION=$($installed_python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")
export HERMETIC_PYTHON_VERSION

echo "TF_VERSION=$TF_VERSION"
REQUIREMENTS_EXTRA_FLAGS="--upgrade"
if [[ "$TF_VERSION" == *"rc"* ]]; then
REQUIREMENTS_EXTRA_FLAGS="$REQUIREMENTS_EXTRA_FLAGS --pre"
fi

bazel run //oss_scripts/pip_package:requirements.update -- $REQUIREMENTS_EXTRA_FLAGS

TF_ABIFLAG=$(bazel run //oss_scripts/pip_package:tensorflow_build_info -- abi)

HEADER_DIR=${TF_CFLAGS:2}
Expand Down
10 changes: 0 additions & 10 deletions oss_scripts/prepare_tf_dep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ if [[ "${osname}" == "darwin" ]]; then
ext='""'
fi

HERMETIC_PYTHON_VERSION=$($installed_python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")
export HERMETIC_PYTHON_VERSION


echo "TF_VERSION=$TF_VERSION"
REQUIREMENTS_EXTRA_FLAGS="--upgrade"
if [[ "$TF_VERSION" == *"rc"* ]]; then
REQUIREMENTS_EXTRA_FLAGS="$REQUIREMENTS_EXTRA_FLAGS --pre"
fi

bazel run //oss_scripts/pip_package:requirements.update -- $REQUIREMENTS_EXTRA_FLAGS

# Update setup.nightly.py with current tf version.
Expand Down

0 comments on commit 7e2412c

Please sign in to comment.