| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | #!/bin/bashset -ex# change to repo rootpushd $(dirname $0)/../../../..export REPO_DIR=protobufexport BUILD_VERSION=`grep -i "version" python/google/protobuf/__init__.py | grep -o "'.*'" | tr -d "'"`export BUILD_COMMIT=v$BUILD_VERSIONexport PLAT=x86_64export UNICODE_WIDTH=32export MACOSX_DEPLOYMENT_TARGET=10.9mkdir artifactsexport ARTIFACT_DIR=$(pwd)/artifactsgit clone https://github.com/matthew-brett/multibuild.gitcp kokoro/release/python/linux/config.sh config.shbuild_artifact_version() {  MB_PYTHON_VERSION=$1  # Clean up env  rm -rf venv  sudo rm -rf protobuf  git clone https://github.com/google/protobuf.git  source multibuild/common_utils.sh  source multibuild/travis_steps.sh  before_install  clean_code $REPO_DIR $BUILD_COMMIT  sed -i '/Wno-sign-compare/a \ \ \ \ \ \ \ \ extra_compile_args.append("-std=c++11")' $REPO_DIR/python/setup.py  cat $REPO_DIR/python/setup.py  build_wheel $REPO_DIR/python $PLAT  mv wheelhouse/* $ARTIFACT_DIR}build_artifact_version 2.7build_artifact_version 3.4build_artifact_version 3.5build_artifact_version 3.6
 |