← Back to issue list

python plugin: avoid the use of PYTHON* env vars.

View original Github issue

Metadata

Project
snapcraft
Number
#1080
Type
pull request
State
closed
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Closed unmerged and superseded by snapcraft/snapcraft#1093, which merged as e7824093f with classic-aware Python handling.

Resolution: closed superseded

Reason: The author stated that #1080 might be replaced by #1093. PR #1093 was subsequently merged in commit e7824093f and implemented the corresponding Python classic-confinement handling.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Avoid the use of environment variables as they leak into whatever else calls them. This helps classic confinement but also other things like snaps with python2 and python3 parts. `PYTHONHOME` can be determined by `argv0` and `PYTHONUSEBASE` is setup in `site.py` LP: #1657504 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed unmerged and superseded by snapcraft/snapcraft#1093, which merged as e7824093f with classic-aware Python handling.
stealth/space-bunny-alpha — closed superseded PR #1080 (drop PYTHON* env vars from python plugin) was closed unmerged; author noted it might be replaced by #1093, which merged as e7824093f making the python plugin classic-aware for LP #1657504.
stealth/space-bunny-alpha — closed superseded Closed unmerged as superseded by #1093, which merged as e7824093f and provided replacement handling for Python snaps under classic confinement.
qwen/qwen3.6-35b-a3b — — The Python plugin change to remove PYTHON* environment variables was closed and superseded by PR #1093. It received informal approval but was never formally reviewed or merged.
qwen3.6-35b-a3b-mtp-q6 — — Python plugin modifications to avoid PYTHON* environment variables were closed and superseded by PR #1093. No merge occurred.

Update history

No update history recorded yet.

Related work

  • Superseded By: snapcraft#1093 (confidence 100%)

    Merged replacement PR, committed as e7824093f.

Related issues

Issue Project State Summary Similarity
#1093 python plugin: do the right thing with classic. snapcraft merged Merged PR canonical/snapcraft#1093 (commit e7824093f) made the python plugin classic-aware: it stops environment variables from leaking into classic builds and requires/uses a classic-compatible Python interpreter (LP #1657504).
76%
#1880319 Python plugin --classic snap conflicts with system python snapcraft (launchpad) closed Classic Python snap handling was fixed by merged PR #1093 (e7824093f), preventing host-environment leakage and using a classic-compatible interpreter.
73%