aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Yang <teboring@google.com>2018-08-13 12:59:37 -0700
committerBo Yang <teboring@google.com>2018-08-13 12:59:37 -0700
commitae54cd951469cd11f64aa4c1182e3c7be5c75858 (patch)
treef1b332ecef316f31c6b4c07bcffe7dde010a72b0
parentf2a1356966cef3889434368598ac888d131489fb (diff)
downloadprotobuf-python-wheel-kokoro-dev.tar.gz
protobuf-python-wheel-kokoro-dev.tar.bz2
protobuf-python-wheel-kokoro-dev.zip
Add kokoro build for python source packagepython-wheel-kokoro-dev
-rwxr-xr-xkokoro/release/python/linux/build_artifacts.sh21
1 files changed, 21 insertions, 0 deletions
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