Force downgrade setuptools for tests after tf whl is installed.
authorAmit Patankar <amitpatankar@google.com>
Wed, 6 Jun 2018 20:35:35 +0000 (13:35 -0700)
committerAmit Patankar <amitpatankar@google.com>
Wed, 6 Jun 2018 20:35:35 +0000 (13:35 -0700)
tensorflow/tools/ci_build/builds/pip.sh

index 76210ba..883bb93 100755 (executable)
@@ -315,7 +315,6 @@ create_activate_virtualenv_and_install_tensorflow() {
   # Upgrade pip so it supports tags such as cp27mu, manylinux1 etc.
   echo "Upgrade pip in virtualenv"
   pip install --upgrade pip==9.0.1
-  pip install --upgrade setuptools==39.1.0
 
   # Force tensorflow reinstallation. Otherwise it may not get installed from
   # last build if it had the same version number as previous build.
@@ -323,6 +322,10 @@ create_activate_virtualenv_and_install_tensorflow() {
   pip install -v ${PIP_FLAGS} ${WHL_PATH} || \
     die "pip install (forcing to reinstall tensorflow) FAILED"
   echo "Successfully installed pip package ${TF_WHEEL_PATH}"
+
+  # Force downgrade setuptools.
+  pip install --upgrade setuptools==39.1.0
+
 }
 
 ################################################################################