Skip to content

Commit e1ec480

Browse files
Fix build due to importlib-metadata/setuptools
See pypa/setuptools#3293
1 parent 63f211c commit e1ec480

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tensorflow/tools/ci_build/release/common.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ function install_macos_pip_deps_no_venv {
182182
# First, upgrade pypi wheels
183183
${PIP_CMD} install --user --upgrade 'setuptools<53' pip wheel
184184

185+
# See https://github.com/pypa/setuptools/issues/3293
186+
# Must happen first, before anyhting else
187+
${PIP_CMD} install --user --upgrade 'importlib-metadata > 4'
188+
185189
# LINT.IfChange(mac_pip_installations)
186190
# Remove any historical keras package if they are installed.
187191
${PIP_CMD} list

0 commit comments

Comments
 (0)