From ae54cd951469cd11f64aa4c1182e3c7be5c75858 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Mon, 13 Aug 2018 12:59:37 -0700 Subject: Add kokoro build for python source package --- kokoro/release/python/linux/build_artifacts.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/kokoro/release/python/linux/build_artifacts.sh b/kokoro/release/python/linux/build_artifacts.sh index 032e30d5..4036629d 100755 --- a/kokoro/release/python/linux/build_artifacts.sh +++ b/kokoro/release/python/linux/build_artifacts.sh @@ -43,3 +43,24 @@ build_artifact_version 2.7 build_artifact_version 3.4 build_artifact_version 3.5 build_artifact_version 3.6 + +# Build source package + +# Clean up env +rm -rf venv +sudo rm -rf protobuf +git clone https://github.com/google/protobuf.git +cd protobuf +git checkout $BUILD_COMMIT + +# Make sure all files are world-readable. +find python -type d -exec chmod a+r,a+x {} + +find python -type f -exec chmod a+r {} + +umask 0022 + +cd python + +# Be sure to run build before sdist, because otherwise sdist will not include +# well-known types. +python setup.py clean build sdist +ls -- cgit v1.2.3