Skip to content

Commit

Permalink
fix auditwheel logic for tf.text
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 642443785
  • Loading branch information
vam-google authored and tf-text-github-robot committed Jun 12, 2024
1 parent 7e2412c commit 272d08b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions oss_scripts/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,9 @@ 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}
SHARED_LIBRARY_DIR=${TF_LFLAGS:2}
SHARED_LIBRARY_NAME=$(echo $TF_LFLAGS_2 | rev | cut -d":" -f1 | rev)
SHARED_LIBRARY_NAME="libtensorflow_framework.so.2"
if is_macos; then
SHARED_LIBRARY_NAME="libtensorflow_framework.2.dylib"
fi

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SHARED_LIBRARY_DIR
write_action_env_to_bazelrc "TF_CXX11_ABI_FLAG" ${TF_ABIFLAG}
2 changes: 0 additions & 2 deletions oss_scripts/prepare_tf_dep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ if [[ "${osname}" == "darwin" ]]; then
ext='""'
fi

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

# Update setup.nightly.py with current tf version.
tf_version=$(bazel run //oss_scripts/pip_package:tensorflow_build_info -- version)
echo "Updating setup.nightly.py to version $tf_version"
Expand Down

0 comments on commit 272d08b

Please sign in to comment.