← Back to issue list

snapcraft plugin for python2/3 should fix incorrect shebang on pkg_resources-generated scripts

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1486680
Type
issue
State
closed
Author
~zyga
Labels
Created
Updated
Closed

Current evaluation

Closed without resolution. The request to patch pkg_resources-generated shebangs from /usr/bin/python3 to /usr/bin/env python3 in the snapcraft plugin was abandoned.

Suggested action:

No scores available.

Issue body

#!/usr/bin/python3 This is the shebang generated for a typical pkg_resources-based console_scripts entry point. This should be patched to contain #!/usr/bin/env python3

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. The request to patch pkg_resources-generated shebangs from /usr/bin/python3 to /usr/bin/env python3 in the snapcraft plugin was abandoned.
qwen/qwen3.6-35b-a3b Closed without resolution or associated pull request. The snapcraft plugin shebang correction for pkg_resources scripts was abandoned, with no fix implemented or tracked.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1602379 'snapcraft' and 'snapcraft-parser' need to use '#!/usr/bin/env python3' in the shebang line snapcraft (launchpad) closed Issue requesting '#!/usr/bin/env python3' shebang lines for 'snapcraft' and 'snapcraft-parser' was closed without comments or resolution details.
77%
#1778716 snapcraft clean snapcraft fails as it cannot find python snapcraft (launchpad) closed Closed without comments or explicit resolution, likely abandoned or resolved in a later release. The bug reported a MissingPythonCommandError during snapcraft clean due to python3 path resolution ordering.
73%
#1499429 snapcraft dies with "export: python3.5/dist-packages: bad variable name" snapcraft (launchpad) closed Closed without resolution due to inactivity. Snapcraft crashes when py3versions returns multiple Python versions, generating a malformed PYTHONPATH that breaks the export command.
72%
#1766662 python shebang rewriting can fail in presence of a stage-package snapcraft (launchpad) closed Abandoned. Closed without resolution after over eight years due to zero comments or patches, likely superseded by newer snapcraft versions.
72%
#1597919 python setuptools entry_point scripts have wrong #! line when specified with a relative path snapcraft (launchpad) closed Abandoned. Closed without comments or resolution. Setuptools entry_point scripts continue generating incorrect shebang lines with relative paths in snapcraft. No fix or merge was implemented.
71%
#1531570 Can't have two python3 parts using setuptools snapcraft (launchpad) closed Closed without resolution or comments. The build conflict report was likely abandoned or superseded by upstream changes to snapcraft and Python packaging standards over the past decade.
71%