fix shebangs should fix versioned python
Metadata
Current evaluation
Fixed by merged snapcore/snapcraft PR #1719, which made shebang rewriting account for versioned Python interpreters.
Resolution: closed resolved
Reason: The proposed fix was merged as commit 8ed95e68a ("many: account for python shebang args in rewrite (#1719)"), adding handling for versioned Python shebangs.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Versioned instances of python in the shebang are not being considered in snapcraft.internal.repo
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged snapcore/snapcraft PR #1719, which made shebang rewriting account for versioned Python interpreters. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR canonical/snapcraft#1719 (commit 8ed95e68a) unified shebang rewriting, accounting for versioned Python interpreters and preserving Python shebang arguments. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1719 (8ed95e68a) fixed Python shebang rewriting, including versioned interpreters handled by snapcraft.internal.repo. | |
| stealth/space-bunny-alpha | — | closed resolved | Versioned Python shebangs were fixed by PR #2112, commit 829adaec4. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved by updating snapcraft.internal.repo to correctly parse versioned Python interpreters in shebangs. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as fixed. Versioned Python shebangs were previously ignored in snapcraft.internal.repo. The maintainer updated the parsing logic to correctly handle versioned interpreters during snap builds. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#1719
(confidence 99%)
The linked PR produced commit 8ed95e68a and was identified in the issue as the proposed fix.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2112 repo: fix all python shebangs in stage-packages | snapcraft | merged | 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. | |
| #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. | |
| #1602379 'snapcraft' and 'snapcraft-parser' need to use '#!/usr/bin/env python3' in the shebang line | snapcraft (launchpad) | closed | Updated snapcraft and snapcraft-parser to use #!/usr/bin/env python3 via merged PR snapcore/snapcraft#649 (commit c156f111c). |