← Back to issue list

snapcraft's pyc files went missing

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1808199
Type
issue
State
closed
Author
~sergiusens
Labels
19.04
Created
Updated
Closed

Current evaluation

PR #2425 restored Snapcraft's missing .pyc files after #2283 moved compilation out of the prime step.

Resolution: closed resolved

Reason: The missing bytecode was fixed by merged PR #2425, which re-added pyc compilation in commit da6cab6c2.

Evaluated by: mr-cal-bot

No scores available.

Issue body

With the refactor provided in https://github.com/snapcore/snapcraft/pull/2283 snapcraft has stopped providing pyc files as the compilation is no longer done in prime.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved PR #2425 restored Snapcraft's missing .pyc files after #2283 moved compilation out of the prime step.
stealth/space-bunny-alpha — closed resolved Snapcraft stopped shipping .pyc files after #2283 moved compilation out of prime; merged PR #2425 restored them in commit da6cab6c2.
stealth/space-bunny-alpha — closed resolved PR #2425 restored the missing .pyc files in the Snapcraft snap after PR #2283 moved Python compilation out of the prime step.
qwen/qwen3.6-35b-a3b — — PR #2283 moved Python compilation out of the prime step, removing pyc files. The report was closed without discussion, superseded by the referenced pull request.
qwen/qwen3.6-35b-a3b — — Closed as expected behavior following PR #2283, which removed pyc compilation from the prime step. The change was acknowledged and no further action was taken.
qwen/qwen3.6-35b-a3b — — Closed. The regression stemmed from PR #2283 removing pyc compilation from the prime step. No further comments or explicit resolution were provided.
qwen3.6-35b-a3b-mtp-q6 — — Closed as a known consequence of the refactor in PR #2283, which relocated Python compilation outside the prime step. No further fix or action was implemented.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#2425 (confidence 100%)

    Its merge commit da6cab6c2 explicitly re-added pyc files to Snapcraft's build.

  • Caused By: snapcore/snapcraft#2283 (confidence 98%)

    The refactor stopped compilation during prime, causing the reported regression.

Related issues

Issue Project State Summary Similarity
#2425 snap: re-add pyc files for snapcraft snapcraft merged Merged PR #2425 (commit da6cab6c2) restored .pyc inclusion in the Snapcraft snap, resolving LP bug #1808199.
83%
#1603200 python2 pyc cache files are missed snapcraft (launchpad) closed Python 2 .pyc cache cleanup was fixed by PR snapcore/snapcraft#660 in commit 8bf22c2a1.
71%