6 pushd $(dirname $0)/../../../..
11 cp -R $ORIGINAL_DIR stage
12 export STAGE_DIR="`pwd`/stage"
15 export REPO_DIR=protobuf
16 export BUILD_VERSION=`grep -i "version" python/google/protobuf/__init__.py | grep -o "'.*'" | tr -d "'"`
17 export BUILD_COMMIT=`git rev-parse HEAD`
19 export UNICODE_WIDTH=32
20 export MACOSX_DEPLOYMENT_TARGET=10.9
21 export TRAVIS_OS_NAME="osx"
26 export ARTIFACT_DIR=$(pwd)/artifacts
28 git clone https://github.com/matthew-brett/multibuild.git
29 cp kokoro/release/python/macos/config.sh config.sh
33 build_artifact_version() {
39 cp -R $STAGE_DIR $REPO_DIR
42 source multibuild/common_utils.sh
43 source multibuild/travis_steps.sh
46 clean_code $REPO_DIR $BUILD_COMMIT
48 build_wheel $REPO_DIR/python $PLAT
50 mv wheelhouse/* $ARTIFACT_DIR
53 build_artifact_version 2.7
54 build_artifact_version 3.4
55 build_artifact_version 3.5
56 build_artifact_version 3.6
57 build_artifact_version 3.7