Skip to content

Commit

Permalink
Use a working docker image for build python release packages (protoco…
Browse files Browse the repository at this point in the history
…lbuffers#8916)

* Use a working docker image for build python release packages

* Update devtoolset-2-libatomic-devel to devtoolset-9-libatomic-devel
  • Loading branch information
TeBoring committed Aug 27, 2021
1 parent f9758b5 commit b0e1f28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
16 changes: 5 additions & 11 deletions kokoro/release/python/linux/build_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,20 @@ build_artifact_version() {
sudo rm -rf $REPO_DIR
}

build_x86_64_artifact_version() {
# Stick to a working version
DOCKER_IMAGE=quay.io/pypa/manylinux2014_x86_64:2021-05-01-28d233a
build_artifact_version $@
}

build_crosscompiled_aarch64_artifact_version() {
# crosscompilation is only supported with the dockcross manylinux2014 image
DOCKER_IMAGE=dockcross/manylinux2014-aarch64
DOCKER_IMAGE=dockcross/manylinux2014-aarch64:20210706-65bf2dd
PLAT=aarch64

# TODO(jtatermusch): currently when crosscompiling, "auditwheel repair" will be disabled
# since auditwheel doesn't work for crosscomiled wheels.
build_artifact_version $@
}

build_x86_64_artifact_version 3.6
build_x86_64_artifact_version 3.7
build_x86_64_artifact_version 3.8
build_x86_64_artifact_version 3.9
build_artifact_version 3.6
build_artifact_version 3.7
build_artifact_version 3.8
build_artifact_version 3.9

build_crosscompiled_aarch64_artifact_version 3.7
build_crosscompiled_aarch64_artifact_version 3.8
Expand Down
2 changes: 0 additions & 2 deletions kokoro/release/python/linux/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ function pre_build {
if [ "$PLAT" == "aarch64" ]
then
local configure_host_flag="--host=aarch64"
else
yum install -y devtoolset-2-libatomic-devel
fi

# Build protoc and libprotobuf
Expand Down

0 comments on commit b0e1f28

Please sign in to comment.