← 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 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).

Resolution: closed resolved

Reason: The PR itself was merged into main as commit e7824093f, adding classic handling to snapcraft/plugins/python.py; the reporter confirmed on 2017-02-02 that the branch built his conjure-up snap on Trusty and that his earlier systemd-service issue was resolved.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved 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).
stealth/space-bunny-alpha — closed resolved Merged in snapcraft#1093 (commit e7824093f), fixing Python snaps’ classic confinement by blocking environment leaks and using a classic-enabled interpreter.
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.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/snapcraft#1112 (confidence 65%)

    Follow-up merged PR (49b39ef9a) setting up core for classic-confinement builds on non-Snappy CI, covering the core-side part of LP #1657504

  • Related To: canonical/snapcraft#1759 (confidence 45%)

    Later work ('many: ensure classic confined binaries use the correct interpreter') continuing the same classic-interpreter theme

Related issues

Issue Project State Summary Similarity
#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.
79%
#1080 python plugin: avoid the use of PYTHON* env vars. snapcraft closed Closed unmerged and superseded by snapcraft/snapcraft#1093, which merged as e7824093f with classic-aware Python handling.
76%
#316 snap: various fixes for classic charmcraft merged Merged classic snap fixes, removing obsolete plugs, adding the python3-dev build package, and preventing PYTHONPATH leakage.
72%