File tree 1 file changed +12
-2
lines changed
tools/run_tests/artifacts
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,20 @@ cd "$(dirname "$0")/../../.."
19
19
20
20
mkdir -p artifacts/
21
21
22
- # All the python packages have been built in the artifact phase already
23
- # and we only collect them here to deliver them to the distribtest phase.
24
22
cp -r " ${EXTERNAL_GIT_ROOT} " /input_artifacts/python_* /* artifacts/ || true
25
23
24
+ strip_binary_wheel () {
25
+ TEMP_WHEEL_DIR=$( mktemp -d)
26
+ unzip " $1 " -d " $TEMP_WHEEL_DIR "
27
+ find " $TEMP_WHEEL_DIR " -name " _protoc_compiler*.so" -exec strip --strip-debug {} " ;"
28
+ find " $TEMP_WHEEL_DIR " -name " cygrpc*.so" -exec strip --strip-debug {} " ;"
29
+ (cd " $TEMP_WHEEL_DIR " && zip -r - .) > " $1 "
30
+ }
31
+
32
+ for wheel in artifacts/* .whl; do
33
+ strip_binary_wheel " $wheel "
34
+ done
35
+
26
36
# TODO: all the artifact builder configurations generate a grpcio-VERSION.tar.gz
27
37
# source distribution package, and only one of them will end up
28
38
# in the artifacts/ directory. They should be all equivalent though.
You can’t perform that action at this time.
0 commit comments