Skip to content

Python packages: moving native symbol stripping to artifact phase.#26194

Merged
jtattermusch merged 1 commit intogrpc:masterfrom
jtattermusch:python_strip_in_artifacts
Sep 9, 2021
Merged

Python packages: moving native symbol stripping to artifact phase.#26194
jtattermusch merged 1 commit intogrpc:masterfrom
jtattermusch:python_strip_in_artifacts

Conversation

@jtattermusch
Copy link
Copy Markdown
Contributor

@jtattermusch jtattermusch commented May 7, 2021

Currently symbol stripping for linux wheels is done in the "build_packages" phase. That has caused confusion in past releases (accidentally publishing non-stripped version of wheels).

This PR moves the stripping to the build_artifact phase:

  • instead of doing the stripping "manually" with a shell script snippet, use "auditwheel repair --strip" to do the job.
  • also cleanup the ordering of build_artifact_python.sh steps to make the way the *.whl and *.tar.gz files are moved around more clear.

Based on my experiments, the windows and macos wheels are already stripped (they are comparable in size to stripped linux wheels). For the crosscompiled wheels, we don't do any stripping, but that's no change with respect to the current state.

@jtattermusch jtattermusch force-pushed the python_strip_in_artifacts branch from 893680a to bb77ad4 Compare May 11, 2021 12:17
@jtattermusch jtattermusch force-pushed the python_strip_in_artifacts branch from 6f168c6 to cca9d9e Compare September 8, 2021 07:03
@jtattermusch jtattermusch changed the title Python packages: try moving native symbol stripping to artifact phase. Python packages: moving native symbol stripping to artifact phase. Sep 8, 2021
@grpc grpc deleted a comment from stale bot Sep 8, 2021
@jtattermusch jtattermusch marked this pull request as ready for review September 8, 2021 07:10
@jtattermusch jtattermusch added release notes: no Indicates if PR should not be in release notes lang/Python labels Sep 8, 2021
@jtattermusch jtattermusch requested a review from gnossen September 8, 2021 07:11
@jtattermusch
Copy link
Copy Markdown
Contributor Author

The failed tests are all due to a kokoro job timeout (unrelated to this PR).

@jtattermusch jtattermusch merged commit 782734a into grpc:master Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition/never stale lang/Python release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants