← Back to issue list

python plugin messing with snapcraft env

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2161191
Type
issue
State
open
Author
~t-a-k
Labels
Created
Updated
Closed

Current evaluation

Python plugin leaking snapcraft's site-packages into builds, causing environment pollution. This issue appears to describe the same problem fixed in snapcraft#2901.

Suggested action: close not a bug

Reason: The reported issue describes the same problem as snapcraft#2901, which was merged and fixed the site-packages leak by conditionally exporting $SNAP/site-packages only when SNAPCRAFT_INTERPRETER is set. Since the underlying bug has already been resolved, this issue should be closed as a duplicate.

Impact: 55 Quick Win: 41.25 Staleness: 55 Complexity: 25 Confidence: 85 Support Request: 15

Issue body

oHi, The python plugin is messing with snapcraft env Changing python version and modules Instead of having them change in a virtual env https://forum.snapcraft.io/t/core26-bundled-python-changes/50178/22 Thanks

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 55
Quick Win: 41.25
Staleness: 55
Complexity: 25
Confidence: 85
Support Request: 15
close not a bug Python plugin leaking snapcraft's site-packages into builds, causing environment pollution. This issue appears to describe the same problem fixed in snapcraft#2901.
qwen/qwen3.6-35b-a3b
Staleness: 20
Complexity: 40
Confidence: 95
Support Request: 20
needs triage Reports that the snapcraft python plugin modifies the host environment instead of using a virtual environment. Currently unlabelled with no maintainer comments, awaiting initial triage.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 50
Confidence: 95
Support Request: 40
needs triage Python plugin unexpectedly modifies the snapcraft environment instead of isolating changes in a virtual environment. Issue is fresh, unlabelled, and awaiting maintainer assessment.
qwen3.6-35b-a3b-mtp-q6
Staleness: 5
Complexity: 30
Confidence: 95
Support Request: 25
needs triage Reports that the snapcraft python plugin modifies the host environment instead of using a virtual environment. Unlabelled, no maintainer response, 0 comments.

Update history

No update history recorded yet.

Related work

  • Duplicate Of: snapcraft#2901 (confidence 90%)

    This issue describes the same problem that was fixed in #2901, which merged a fix preventing the Python plugin from leaking snapcraft's site-packages into build environments.

Related issues

Issue Project State Summary Similarity
#2901 python plugin: do not leak snapcraft's site-packages snapcraft merged Merged fix preventing the Python plugin from leaking snapcraft site-packages during builds. sitecustomize now conditionally exports $SNAP/site-packages only when SNAPCRAFT_INTERPRETER is set, resolving build environment pollution.
81%