Merge pull request #20080 from veblush/auditwheel

Run auditwheel-show to python artifacts
pull/20039/head
Esun Kim 5 years ago committed by GitHub
commit ec1f1ec5e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tools/dockerfile/grpc_artifact_python_manylinux_x64/Dockerfile
  2. 7
      tools/dockerfile/grpc_artifact_python_manylinux_x86/Dockerfile
  3. 2
      tools/run_tests/artifacts/build_artifact_python.sh

@ -32,7 +32,7 @@ RUN /opt/python/cp37-cp37m/bin/pip install cython
#################################################### ####################################################
# Install auditwheel with fix for namespace packages # Install auditwheel with fix for namespace packages
RUN git clone https://github.com/pypa/auditwheel /usr/local/src/auditwheel RUN git clone https://github.com/pypa/auditwheel /usr/local/src/auditwheel
RUN cd /usr/local/src/auditwheel && git checkout bf071b38c9fe78b025ea05c78b1cb61d7cb09939 RUN cd /usr/local/src/auditwheel && git checkout 2.1
RUN /opt/python/cp35-cp35m/bin/pip install /usr/local/src/auditwheel RUN /opt/python/cp36-cp36m/bin/pip install /usr/local/src/auditwheel
RUN rm /usr/local/bin/auditwheel RUN rm /usr/local/bin/auditwheel
RUN cd /usr/local/bin && ln -s /opt/python/cp35-cp35m/bin/auditwheel RUN cd /usr/local/bin && ln -s /opt/python/cp36-cp36m/bin/auditwheel

@ -32,7 +32,8 @@ RUN /opt/python/cp37-cp37m/bin/pip install cython
#################################################### ####################################################
# Install auditwheel with fix for namespace packages # Install auditwheel with fix for namespace packages
RUN git clone https://github.com/pypa/auditwheel /usr/local/src/auditwheel RUN git clone https://github.com/pypa/auditwheel /usr/local/src/auditwheel
RUN cd /usr/local/src/auditwheel && git checkout bf071b38c9fe78b025ea05c78b1cb61d7cb09939 RUN cd /usr/local/src/auditwheel && git checkout 2.1
RUN /opt/python/cp35-cp35m/bin/pip install /usr/local/src/auditwheel RUN /opt/python/cp36-cp36m/bin/pip install /usr/local/src/auditwheel
RUN rm /usr/local/bin/auditwheel RUN rm /usr/local/bin/auditwheel
RUN cd /usr/local/bin && ln -s /opt/python/cp35-cp35m/bin/auditwheel RUN cd /usr/local/bin && ln -s /opt/python/cp36-cp36m/bin/auditwheel

@ -79,10 +79,12 @@ ${SETARCH_CMD} "${PYTHON}" tools/distrib/python/grpcio_tools/setup.py bdist_whee
if [ "$GRPC_BUILD_MANYLINUX_WHEEL" != "" ] if [ "$GRPC_BUILD_MANYLINUX_WHEEL" != "" ]
then then
for wheel in dist/*.whl; do for wheel in dist/*.whl; do
"${AUDITWHEEL}" show "$wheel" | tee /dev/stderr | grep \"manylinux1
"${AUDITWHEEL}" repair "$wheel" -w "$ARTIFACT_DIR" "${AUDITWHEEL}" repair "$wheel" -w "$ARTIFACT_DIR"
rm "$wheel" rm "$wheel"
done done
for wheel in tools/distrib/python/grpcio_tools/dist/*.whl; do for wheel in tools/distrib/python/grpcio_tools/dist/*.whl; do
"${AUDITWHEEL}" show "$wheel" | tee /dev/stderr | grep \"manylinux1
"${AUDITWHEEL}" repair "$wheel" -w "$ARTIFACT_DIR" "${AUDITWHEEL}" repair "$wheel" -w "$ARTIFACT_DIR"
rm "$wheel" rm "$wheel"
done done

Loading…
Cancel
Save