aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/build_artifact_python.sh
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-02-25 16:03:11 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-02-25 16:03:11 -0800
commit5a9d7d2dcc1d2680307938fffb3d8d232b9a0690 (patch)
tree3326bc5a99120c37b8b13a8bbce38834366b0ec1 /tools/run_tests/build_artifact_python.sh
parent6895168e0ac19699f2a1e35cbf094a5477f00ca7 (diff)
parentd67b5f7313de5b09928a0ab99a7fbd294d26ceda (diff)
Merge github.com:grpc/grpc into filter-selection
Diffstat (limited to 'tools/run_tests/build_artifact_python.sh')
-rwxr-xr-xtools/run_tests/build_artifact_python.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/run_tests/build_artifact_python.sh b/tools/run_tests/build_artifact_python.sh
index 6e7ab911d5..7ba04d7546 100755
--- a/tools/run_tests/build_artifact_python.sh
+++ b/tools/run_tests/build_artifact_python.sh
@@ -39,6 +39,14 @@ then
pip install -rrequirements.txt
fi
+# Build the source distribution first because MANIFEST.in cannot override
+# exclusion of built shared objects among package resources (for some
+# inexplicable reason).
+GRPC_PYTHON_USE_CUSTOM_BDIST=0 \
+GRPC_PYTHON_BUILD_WITH_CYTHON=1 \
+${SETARCH_CMD} python setup.py \
+ sdist
+
# The bdist_wheel_grpc_custom command is finicky about command output ordering
# and thus ought to be run in a shell command separate of others. Further, it
# trashes the actual bdist_wheel output, so it should be run first so that
@@ -48,11 +56,12 @@ GRPC_PYTHON_BUILD_WITH_CYTHON=1 \
${SETARCH_CMD} python setup.py \
build_tagged_ext
+# Wheel has a bug where directories don't get excluded.
+# https://bitbucket.org/pypa/wheel/issues/99/cannot-exclude-directory
GRPC_PYTHON_USE_CUSTOM_BDIST=0 \
GRPC_PYTHON_BUILD_WITH_CYTHON=1 \
${SETARCH_CMD} python setup.py \
- bdist_wheel \
- sdist
+ bdist_wheel
mkdir -p artifacts