Skip to content

Commit a122e57

Browse files
(CI) don't build protobuf from source
1 parent 1dcb93a commit a122e57

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

scripts/travis/install-deps.sh

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,6 @@ apt-get install -y --no-install-recommends \
3030
python3-numpy \
3131
python3-skimage
3232

33-
# build Protobuf3 since it's needed for Python3
34-
PROTOBUF3_DIR=~/protobuf3
35-
pushd .
36-
if [ -d "$PROTOBUF3_DIR" ] && [ -e "$PROTOBUF3_DIR/src/protoc" ]; then
37-
echo "Using cached protobuf3 build ..."
38-
cd $PROTOBUF3_DIR
39-
else
40-
echo "Building protobuf3 from source ..."
41-
rm -rf $PROTOBUF3_DIR
42-
mkdir $PROTOBUF3_DIR
43-
44-
# install some more dependencies required to build protobuf3
45-
apt-get install -y --no-install-recommends \
46-
curl \
47-
dh-autoreconf \
48-
unzip
49-
50-
wget https://github.com/google/protobuf/archive/3.0.x.tar.gz -O protobuf3.tar.gz
51-
tar -xzf protobuf3.tar.gz -C $PROTOBUF3_DIR --strip 1
52-
rm protobuf3.tar.gz
53-
cd $PROTOBUF3_DIR
54-
./autogen.sh
55-
./configure --prefix=/usr
56-
make --jobs=$NUM_THREADS
57-
fi
58-
make install
59-
popd
60-
fi
61-
6233
if $WITH_IO ; then
6334
apt-get install -y --no-install-recommends \
6435
libleveldb-dev \

0 commit comments

Comments
 (0)