← Back to issue list

snap: only ship .pyc files, strip shared objects

View original Github issue

Metadata

Project
snapcraft
Number
#2843
Type
pull request
State
closed
Author
om26er
Labels
Created
Updated
Closed

Current evaluation

Rejected. The maintainer closed the request, noting that removing source .py files and stripping shared objects is controversial and conflicts with project goals, despite the 15MB size reduction.

Suggested action:

No scores available.

Issue body

- [*] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [*] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [*] Have you successfully run `./runtests.sh static`? - [*] Have you successfully run `./runtests.sh tests/unit`? ----- To speed things up snapcraft ships .pyc files as part of its snap package, at the same times it also ships .py files. This is duplication and increases the size of the snap unneeded. This PR also strips shared objects that are bundled with snapcraft. The change reduces the download size of the snap by 15Mb

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Rejected. The maintainer closed the request, noting that removing source .py files and stripping shared objects is controversial and conflicts with project goals, despite the 15MB size reduction.
qwen3.6-35b-a3b-mtp-q6 Rejected as controversial and misaligned with project goals. Maintainers declined removing .py source files to preserve debugging access, despite the 15MB size reduction from stripping shared objects and shipping only .pyc files.
qwen3.6-35b-a3b-mtp-q6 Rejected as a controversial change that does not align with project goals. The pull request to reduce snap size by shipping only .pyc files and stripping shared objects was closed without merging.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1856242 Python plugin: ship pyc files only snapcraft (launchpad) open Feature request to make the Python plugin ship only .pyc files (removing .py) to reduce snap size. Open since 2019, unlabelled, zero comments, no maintainer activity. The current craft-parts python plugin v2 no longer bytecompiles, so the premise is outdated.
73%