Integrate Python protoc Linux artifact builders

pull/6280/head
Masood Malekghassemi 9 years ago
parent 58d24c259a
commit af3158350e
  1. 9
      tools/dockerfile/grpc_artifact_linux_x64/Dockerfile
  2. 9
      tools/dockerfile/grpc_artifact_linux_x86/Dockerfile
  3. 9
      tools/run_tests/build_artifact_python.sh

@ -37,6 +37,7 @@ RUN apt-get update && apt-get install -y \
autotools-dev \
build-essential \
bzip2 \
clang \
curl \
gcc \
gcc-multilib \
@ -66,6 +67,14 @@ RUN /bin/bash -l -c "nvm install 4 && npm install -g node-pre-gyp"
##################
# Python dependencies
# Install bazel
RUN echo "deb http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list
RUN apt-get update
RUN apt-get -t jessie-backports install -y openjdk-8-jdk
RUN git clone https://github.com/bazelbuild/bazel.git /bazel
RUN cd /bazel && ./compile.sh
RUN ln -s /bazel/output/bazel /bin/
RUN apt-get update && apt-get install -y \
python-all-dev \
python3-all-dev \

@ -37,6 +37,7 @@ RUN apt-get update && apt-get install -y \
autotools-dev \
build-essential \
bzip2 \
clang \
curl \
gcc \
gcc-multilib \
@ -66,6 +67,14 @@ RUN /bin/bash -l -c "nvm install 4 && npm install -g node-pre-gyp"
##################
# Python dependencies
# Install bazel
RUN echo "deb http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list
RUN apt-get update
RUN apt-get -t jessie-backports install -y openjdk-8-jdk
RUN git clone https://github.com/bazelbuild/bazel.git /bazel
RUN cd /bazel && ./compile.sh
RUN ln -s /bazel/output/bazel /bin/
RUN apt-get update && apt-get install -y \
python-all-dev \
python3-all-dev \

@ -62,6 +62,13 @@ ${SETARCH_CMD} python setup.py \
${SETARCH_CMD} python setup.py \
bdist_wheel
mkdir -p artifacts
# Build gRPC tools package
python tools/distrib/python/make_grpcio_tools.py
# Build with clang since there's a bug in GCC 4.x where some constant
# expressions are treated as non-constant in the presence of the fwrapv flag
# (fixed in at most GCC 5.3).
CC=clang python tools/distrib/python/grpcio_tools/setup.py bdist_wheel
mkdir -p artifacts
cp -r dist/* artifacts
cp -r tools/distrib/python/grpcio_tools/dist/* artifacts

Loading…
Cancel
Save