Strip debug symbols of wheels
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 326
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 8
Description
I was just made aware by @mattip that some Python distributions have -g in sysconfig.get_config_vars('CFLAGS'), and thus include debug symbols (including the versions in the manylinux images, it seems). The reason for this apparently is that these are then stripped before packed in the Debian/Fedora/... package managers (and often the symbols themselves are added as separate package for debugging).
The thing about building wheels is that these sysconfig are used when building wheels. So should we somehow strip symbols as well, or add -Wl,-strip-all to the build flags, or ... ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing where Python sysconfig CFLAGS, including -g, enter the wheel build process and compare that behavior with the manylinux images mentioned in the issue. Define a cross-platform approach for stripping symbols or adjusting linker flags, then verify that produced wheels no longer retain unwanted debug symbols without breaking builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100