Skip to content

Commit fe22be3

Browse files
authored
Merge pull request tensorflow#19819 from av8ramit/fix_setuptools3
Force downgrade setuptools for tests after tf whl is installed.
2 parents 60c479d + 9f1e508 commit fe22be3

File tree

1 file changed

+4
-1
lines changed
  • tensorflow/tools/ci_build/builds

1 file changed

+4
-1
lines changed

tensorflow/tools/ci_build/builds/pip.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,17 @@ create_activate_virtualenv_and_install_tensorflow() {
315315
# Upgrade pip so it supports tags such as cp27mu, manylinux1 etc.
316316
echo "Upgrade pip in virtualenv"
317317
pip install --upgrade pip==9.0.1
318-
pip install --upgrade setuptools==39.1.0
319318

320319
# Force tensorflow reinstallation. Otherwise it may not get installed from
321320
# last build if it had the same version number as previous build.
322321
PIP_FLAGS="--upgrade --force-reinstall"
323322
pip install -v ${PIP_FLAGS} ${WHL_PATH} || \
324323
die "pip install (forcing to reinstall tensorflow) FAILED"
325324
echo "Successfully installed pip package ${TF_WHEEL_PATH}"
325+
326+
# Force downgrade setuptools.
327+
pip install --upgrade setuptools==39.1.0
328+
326329
}
327330

328331
################################################################################

0 commit comments

Comments
 (0)