Skip to content

Commit 02e1581

Browse files
TensorFlow Hub Authorscopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 602714202
1 parent 26b66b0 commit 02e1581

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tensorflow_hub/pip_package/build_pip_package.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ function main() {
5858
cp "tensorflow_hub/LICENSE" "${TMPDIR}/LICENSE.txt"
5959
cp -R "${RUNFILES}/tensorflow_hub" "${TMPDIR}"
6060

61+
# Remove this once the library supports Keras 3.
62+
# Install tf-keras-nightly instead if tf-nightly is installed.
63+
if [[ $TENSORFLOW_VERSION == *tf-nightly ]]
64+
then
65+
sed -i "s|tf-keras|tf-keras-nightly|g" "${TMPDIR}/setup.py"
66+
else
67+
echo "Did not replace dependency on tf-keras"
68+
fi
69+
6170
pushd ${TMPDIR}
6271
rm -f MANIFEST
6372

0 commit comments

Comments
 (0)