Skip to content

Commit 3edabec

Browse files
author
Amit Patankar
committed
Change order of installations.
1 parent dbe7fd6 commit 3edabec

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

tensorflow/tools/ci_build/install/install_pip_packages.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ set -e
2121
easy_install -U pip==9.0.3
2222
easy_install3 -U pip==9.0.3
2323

24-
pip2 install --upgrade setuptools==39.1.0
25-
pip3 install --upgrade setuptools==39.1.0
26-
2724
# Install pip packages from whl files to avoid the time-consuming process of
2825
# building from source.
2926

@@ -57,6 +54,10 @@ pip3 install --upgrade markdown==2.6.8
5754
pip2 install --upgrade protobuf==3.3.0
5855
pip3 install --upgrade protobuf==3.3.0
5956

57+
# Install last working version of setuptools.
58+
pip2 install --upgrade setuptools==39.1.0
59+
pip3 install --upgrade setuptools==39.1.0
60+
6061
# Remove obsolete version of six, which can sometimes confuse virtualenv.
6162
rm -rf /usr/lib/python3/dist-packages/six*
6263

tensorflow/tools/ci_build/install/install_python3.5_pip_packages.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ if [[ -z $pip35_version ]]; then
3939
fi
4040

4141
set -e
42-
pip3.5 install --upgrade setuptools==39.1.0
4342
pip3.5 install --upgrade pip
4443

4544
pip3.5 install --upgrade virtualenv
@@ -51,6 +50,9 @@ pip3.5 install --upgrade six==1.10.0
5150
# Install protobuf.
5251
pip3.5 install --upgrade protobuf==3.3.0
5352

53+
# Install last working version of setuptools.
54+
pip3.5 install --upgrade setuptools==39.1.0
55+
5456
# Remove obsolete version of six, which can sometimes confuse virtualenv.
5557
rm -rf /usr/lib/python3/dist-packages/six*
5658

tensorflow/tools/ci_build/install/install_python3.6_pip_packages.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ cd Python-3.6.1
4949
make altinstall
5050
ln -s /usr/local/bin/pip3.6 /usr/local/bin/pip3
5151

52-
pip3 install --upgrade setuptools==39.1.0
5352
pip3 install --upgrade pip
5453

5554
pip3 install --upgrade virtualenv
@@ -63,6 +62,9 @@ pip3 install --upgrade six==1.10.0
6362
# Install protobuf.
6463
pip3 install --upgrade protobuf==3.3.0
6564

65+
# Install last working version of setuptools.
66+
pip3 install --upgrade setuptools==39.1.0
67+
6668
# Remove obsolete version of six, which can sometimes confuse virtualenv.
6769
rm -rf /usr/lib/python3/dist-packages/six*
6870

0 commit comments

Comments
 (0)