| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 | #!/bin/bashset -ex# change to repo rootpushd $(dirname $0)/../../../..# Create stage dirORIGINAL_DIR=`pwd`pushd ..cp -R $ORIGINAL_DIR stageexport STAGE_DIR="`pwd`/stage"popdexport REPO_DIR=protobufexport BUILD_VERSION=`grep -i "version" python/google/protobuf/__init__.py | grep -o "'.*'" | tr -d "'"`export BUILD_COMMIT=`git rev-parse HEAD`export PLAT=x86_64export UNICODE_WIDTH=32export MACOSX_DEPLOYMENT_TARGET=10.9rm -rf artifacts/rm -rf multibuild/mkdir 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 $REPO_DIR  cp -R $STAGE_DIR $REPO_DIR  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.5build_artifact_version 3.6build_artifact_version 3.7build_artifact_version 3.8
 |