repo: fix all python shebangs in stage-packages
Metadata
Current evaluation
PR #2112 (commit 829adaec4) merged: snapcraft now rewrites Python shebangs across the whole part instead of only bin/, and drops archived sitecustomize.py, fixing LP: #1766662.
Resolution: closed resolved
Reason: The pull request itself was merged into the repo as commit 829adaec4 ("repo: fix all python shebangs in stage-packages (#2112)"), approved by a maintainer reviewer. It made stage-packages shebang fixing consistent with the python plugin (whole part, not just bin) and removed the staged sitecustomize.py, resolving Launchpad bug #1766662.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | PR #2112 (commit 829adaec4) merged: snapcraft now rewrites Python shebangs across the whole part instead of only bin/, and drops archived sitecustomize.py, fixing LP: #1766662. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #2112 (commit 829adaec4) by kyrofa: stage-packages now get Python shebangs rewritten across the whole part, not just bin/, and the archived sitecustomize.py is stripped, fixing LP: #1766662. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #2112 (commit 829adaec4) fixed Python shebang rewriting throughout stage-packages and removed archived sitecustomize.py to prevent part clashes, resolving LP: #1766662. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged fix aligns Python shebang replacement in stage-packages with standard plugin behavior, applying it throughout the entire part instead of only bin directories. Removes sitecustomize.py to prevent part clashes. Resolves LP: #1766662. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Updated stage-packages to fix Python shebangs across the entire part rather than only bin directories, eliminating conflicts when combining parts. Also removed sitecustomize.py from archives to prevent clashes. Resolves LP: #1766662. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
snapcraft#1719
(confidence 40%)
Earlier merged PR 8ed95e68a unified the Python shebang rewrite logic and accounted for shebang args; same area of code touched by #2112.
-
Related To:
snapcraft#3320
(confidence 30%)
Later python v2 plugin work (d1d8a9414) continued shebang interpreter consistency for staged python parts.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1766662 python shebang rewriting can fail in presence of a stage-package | snapcraft (launchpad) | closed | Fixed by merged canonical/snapcraft PR #2112 (commit 829adaec4), broadening Python shebang rewriting from bin directories to all stage-packages so later parts stage successfully. | |
| #1486680 snapcraft plugin for python2/3 should fix incorrect shebang on pkg_resources-generated scripts | snapcraft (launchpad) | closed | Fixed by snapcraft#1719 (commit 8ed95e68a), which updated Python shebang rewriting to handle pkg_resources-generated console scripts with interpreter arguments. | |
| #1673451 fix shebangs should fix versioned python | snapcraft (launchpad) | closed | Fixed by merged snapcore/snapcraft PR #1719, which made shebang rewriting account for versioned Python interpreters. |