← Back to issue list

python shebang rewriting can fail in presence of a stage-package

View original Launchpad issue

Metadata

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

Current evaluation

Abandoned. Closed without resolution after over eight years due to zero comments or patches, likely superseded by newer snapcraft versions.

Suggested action:

No scores available.

Issue body

Attempt to snap the following yaml: --- name: python-with-two-parts-stage-packages version: 0 summary: test the python plugin description: | This is a snap with two python parts and stage-packages confinement: strict grade: devel parts: part1: source: . plugin: python stage-packages: - python3-yaml part2: source: . plugin: python python-packages: - bitstring after: [part1] --- Note that after the build step of `part1` some files will have a shebang line (on xenial here): #! /usr/bin/python3.5 This will prevent staging of `part2` whose shebang lines appear to modified to the desired: #!/usr/bin/env python3.5

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Abandoned. Closed without resolution after over eight years due to zero comments or patches, likely superseded by newer snapcraft versions.
qwen/qwen3.6-35b-a3b Abandoned due to inactivity. Reported that python shebang rewriting fails during staging when a stage-package is present in a multi-part snap.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1486680 snapcraft plugin for python2/3 should fix incorrect shebang on pkg_resources-generated scripts snapcraft (launchpad) closed 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.
72%
#1511440 python based package created using snapcraft fails review checks due to external symlink snapcraft (launchpad) closed Closed without resolution. Snapcraft-built Python2 packages failed store review checks due to external symlinks. The report received no comments or fixes and was abandoned.
71%