Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 602714202
  • Loading branch information
TensorFlow Hub Authors authored and copybara-github committed Jan 30, 2024
1 parent 26b66b0 commit 02e1581
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tensorflow_hub/pip_package/build_pip_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ function main() {
cp "tensorflow_hub/LICENSE" "${TMPDIR}/LICENSE.txt"
cp -R "${RUNFILES}/tensorflow_hub" "${TMPDIR}"

# Remove this once the library supports Keras 3.
# Install tf-keras-nightly instead if tf-nightly is installed.
if [[ $TENSORFLOW_VERSION == *tf-nightly ]]
then
sed -i "s|tf-keras|tf-keras-nightly|g" "${TMPDIR}/setup.py"
else
echo "Did not replace dependency on tf-keras"
fi

pushd ${TMPDIR}
rm -f MANIFEST

Expand Down

0 comments on commit 02e1581

Please sign in to comment.