Skip to content

Commit cb19b63

Browse files
jhseugunan
authored andcommitted
Update our version of protocol buffers. Use a new numpy and pandas in Jenkins. (tensorflow#7338)
* Update to protobuf 3.2.0 * Add missing link dep * Fix * pip install numpy
1 parent 088b2d4 commit cb19b63

File tree

4 files changed

+17
-23
lines changed

4 files changed

+17
-23
lines changed

tensorflow/contrib/makefile/compile_android_protobuf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ CXXFLAGS="-frtti -fexceptions ${march_option} \
165165
-I${NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.9/include \
166166
-I${NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.9/libs/${ARCHITECTURE}/include" \
167167
LDFLAGS="-L${NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.9/libs/${ARCHITECTURE}" \
168-
LIBS="-lz -lgnustl_static"
168+
LIBS="-llog -lz -lgnustl_static"
169169

170170
if [ $? -ne 0 ]
171171
then

tensorflow/tools/ci_build/install/install_pip_packages.sh

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,26 @@ pip install --upgrade werkzeug==0.11.10
3131
pip3 install --upgrade werkzeug==0.11.10
3232

3333
# Install protobuf.
34-
pip install --upgrade protobuf==3.0.0
35-
pip3 install --upgrade protobuf==3.0.0
34+
pip install --upgrade protobuf==3.2.0
35+
pip3 install --upgrade protobuf==3.2.0
3636

3737
# Remove obsolete version of six, which can sometimes confuse virtualenv.
3838
rm -rf /usr/lib/python3/dist-packages/six*
3939

4040
set +e
4141
# Use pip to install numpy to a modern version, instead of 1.8.2 that comes
4242
# with apt-get in ubuntu:14.04.
43-
NUMPY_VERSION="1.11.0"
43+
NUMPY_VERSION="1.12.0"
4444
numpy_ver_flat=$(echo $NUMPY_VERSION | sed 's/\.//g' | sed 's/^0*//g')
4545
local_numpy_ver=$(python -c "import numpy; print(numpy.__version__)")
4646
local_numpy_ver_flat=$(echo $local_numpy_ver | sed 's/\.//g' | sed 's/^0*//g')
4747
if [[ -z $local_numpy_ver_flat ]]; then
4848
local_numpy_ver_flat=0
4949
fi
5050
if (( $local_numpy_ver_flat < $numpy_ver_flat )); then
51-
set -e
52-
wget -q https://pypi.python.org/packages/06/92/3c786303889e6246971ad4c48ac2b4e37a1b1c67c0dc2106dc85cb15c18e/numpy-1.11.0-cp27-cp27mu-manylinux1_x86_64.whl#md5=6ffb66ff78c28c55bfa09a2ceee487df
53-
mv numpy-1.11.0-cp27-cp27mu-manylinux1_x86_64.whl \
54-
numpy-1.11.0-cp27-none-linux_x86_64.whl
55-
pip install numpy-1.11.0-cp27-none-linux_x86_64.whl
56-
rm numpy-1.11.0-cp27-none-linux_x86_64.whl
51+
# We must pip install numpy to compile it from source due to subtle issues
52+
# around the pypi package and Ubuntu 14.04.
53+
pip install --upgrade numpy==$NUMPY_VERSION
5754
fi
5855

5956
set +e
@@ -63,12 +60,9 @@ if [[ -z $local_numpy_ver_flat ]]; then
6360
local_numpy_ver_flat=0
6461
fi
6562
if (( $local_numpy_ver_flat < $numpy_ver_flat )); then
66-
set -e
67-
wget -q https://pypi.python.org/packages/ea/ca/5e48a68be496e6f79c3c8d90f7c03ea09bbb154ea4511f5b3d6c825cefe5/numpy-1.11.0-cp34-cp34m-manylinux1_x86_64.whl#md5=08a002aeffa20354aa5045eadb549361
68-
mv numpy-1.11.0-cp34-cp34m-manylinux1_x86_64.whl \
69-
numpy-1.11.0-cp34-none-linux_x86_64.whl
70-
pip3 install numpy-1.11.0-cp34-none-linux_x86_64.whl
71-
rm numpy-1.11.0-cp34-none-linux_x86_64.whl
63+
# We must pip install numpy to compile it from source due to subtle issues
64+
# around the pypi package and Ubuntu 14.04.
65+
pip3 install --upgrade numpy==$NUMPY_VERSION
7266
fi
7367

7468
# Use pip to install scipy to get the latest version, instead of 0.13 through
@@ -144,8 +138,8 @@ fi
144138
set -e
145139

146140
# pandas required by tf.learn/inflow
147-
pip install pandas==0.18.1
148-
pip3 install pandas==0.18.1
141+
pip install pandas==0.19.2
142+
pip3 install pandas==0.19.2
149143

150144
# Benchmark tests require the following:
151145
pip install psutil

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ set -e
6464
pip3.5 install --upgrade six==1.10.0
6565

6666
# Install protobuf.
67-
pip3.5 install --upgrade protobuf==3.0.0
67+
pip3.5 install --upgrade protobuf==3.2.0
6868

6969
# Remove obsolete version of six, which can sometimes confuse virtualenv.
7070
rm -rf /usr/lib/python3/dist-packages/six*

tensorflow/workspace.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
214214
native.http_archive(
215215
name = "protobuf",
216216
urls = [
217-
"http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz",
218-
"https://github.com/google/protobuf/archive/008b5a228b37c054f46ba478ccafa5e855cb16db.tar.gz",
217+
"http://bazel-mirror.storage.googleapis.com/github.com/google/protobuf/archive/9d3288e651700f3d52e6b4ead2a9f9ab02da53f4.tar.gz",
218+
"https://github.com/google/protobuf/archive/9d3288e651700f3d52e6b4ead2a9f9ab02da53f4.tar.gz",
219219
],
220-
sha256 = "2737ad055eb8a9bc63ed068e32c4ea280b62d8236578cb4d4120eb5543f759ab",
221-
strip_prefix = "protobuf-008b5a228b37c054f46ba478ccafa5e855cb16db",
220+
sha256 = "4663e886f9bbea0121ce424e1620997a37d38c6299dc82183223a0401bbf70ed",
221+
strip_prefix = "protobuf-9d3288e651700f3d52e6b4ead2a9f9ab02da53f4",
222222
)
223223

224224
native.new_http_archive(

0 commit comments

Comments
 (0)