← Back to issue list

'snapcraft' and 'snapcraft-parser' need to use '#!/usr/bin/env python3' in the shebang line

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1602379
Type
issue
State
closed
Author
~joetalbott
Labels
—
Created
Updated
Closed

Current evaluation

Updated snapcraft and snapcraft-parser to use #!/usr/bin/env python3 via merged PR snapcore/snapcraft#649 (commit c156f111c).

Resolution: closed resolved

Reason: The shebang change was implemented and merged in snapcore/snapcraft#649, recorded as commit c156f111c.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Both should use '#!/usr/bin/env python3'.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Updated snapcraft and snapcraft-parser to use #!/usr/bin/env python3 via merged PR snapcore/snapcraft#649 (commit c156f111c).
stealth/space-bunny-alpha — closed resolved Shebang change landed: PR #649 merged as commit c156f111c, switching snapcraft and snapcraft-parser to '#!/usr/bin/env python3'; issue closed by maintainer sergiusens.
stealth/space-bunny-alpha — closed superseded Shebang work moved to PR #98, merged as c5f573dd3, which made Python/setuptools wrappers use the snap-local interpreter instead of adopting /usr/bin/env python3.
qwen/qwen3.6-35b-a3b — — Requested shebang updates for snapcraft and snapcraft-parser to use python3 were abandoned and closed without resolution or comments. No fix was implemented.
qwen/qwen3.6-35b-a3b — — Issue requesting '#!/usr/bin/env python3' shebang lines for 'snapcraft' and 'snapcraft-parser' was closed without comments or resolution details.
qwen/qwen3.6-35b-a3b — — Closed without comments or resolution details. The request to update shebang lines in snapcraft and snapcraft-parser to python3 was not discussed, indicating it was resolved or abandoned.
qwen3.6-35b-a3b-mtp-q6 — — Closed as abandoned. The suggested shebang update to #!/usr/bin/env python3 for snapcraft and snapcraft-parser was not implemented.

Update history

Date Change
created

Related work

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

    The linked PR contains commit c156f111c, titled "Use '/usr/bin/env python3' (#649)".

Related issues

Issue Project State Summary Similarity
#649 Use '/usr/bin/env python3' snapcraft merged Merged in canonical/snapcraft#649 (c156f111c), changing two Python shebangs to /usr/bin/env python3 to address LP#1602379.
81%
#1778716 snapcraft clean snapcraft fails as it cannot find python snapcraft (launchpad) closed Fixed by snapcore/snapcraft PR #2171, which corrected Python plugin cleanup so `snapcraft clean snapcraft` no longer fails when python3 is unavailable.
75%
#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.
75%
#1862163 snapcraft breaks with python app snapcraft (launchpad) closed Snapcraft wrongly rewrote a non-adapter app command into '/usr/bin/python3 $SNAP/...' which snapd rejected. Fixed by merged PR snapcore/snapcraft#2912, shipped in snapcraft 3.10.
73%
#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.
70%