← Back to issue list

python plugin: do the right thing with classic.

View original Github issue

Metadata

Project
snapcraft
Number
#1093
Type
pull request
State
merged
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

Merged to enable classic confinement for Python snaps by preventing environment variable leaking and using a Python interpreter with classic compilation flags. Resolves LP #1657504 and verified on Trusty.

Suggested action:

No scores available.

Issue body

To fully enable classic confinment for python based snaps, there are two big things that need to get done; no env var leaking and use a python interpreter with the classic compilation flags. LP: #1657504 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged to enable classic confinement for Python snaps by preventing environment variable leaking and using a Python interpreter with classic compilation flags. Resolves LP #1657504 and verified on Trusty.
qwen3.6-35b-a3b-mtp-q6 Merged. Updates the python plugin to support classic confinement by preventing environment variable leaking and using a Python interpreter with classic compilation flags. Successfully tested on Trusty, resolving LP #1657504.
qwen3.6-35b-a3b-mtp-q6 Merged to enable classic confinement for Python snaps by preventing environment variable leaking and ensuring correct interpreter compilation flags. Successfully tested on Trusty, resolving classic confinement support for Python-based snaps.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1880319 Python plugin --classic snap conflicts with system python snapcraft (launchpad) closed Closed without comments or resolution, likely abandoned. The issue reported a Python plugin conflict where classic confinement snaps incorrectly imported host system libraries instead of packaged dependencies.
79%
#1670749 classic confinement requires manually setting PATH and PYTHONPATH snapcraft (launchpad) open Classic-confinement snaps built with the python plugin require manually setting PATH and PYTHONPATH via environment: to include $SNAP/bin and $SNAP/lib/python2.7/site-packages; reporter argues snapcraft should do this automatically. No maintainer response or labels; issue is ~9 years old.
72%