feat(plugins): support core24 in the Python plugin
Metadata
Current evaluation
Merged after approval and CI. Added core24 Python plugin support by detecting the confined /usr/bin/python3.12 interpreter and refining confinement logic. A flaky out-of-tree test was removed.
Suggested action: —
No scores available.
Issue body
The interpreter for confined core24 snaps is /usr/bin/python3.12. This also includes some minor rework of the logic: if the snap's confinement is strict or devmode, then we should definitely know which interpreter to use. This can make our lives easier in the future as we support more bases.
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `tox run -m lint`?
- [ ] Have you successfully run `tox run -e test-py310`? (supported versions: `py39`, `py310`, `py311`, `py312`)
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged after approval and CI. Added core24 Python plugin support by detecting the confined /usr/bin/python3.12 interpreter and refining confinement logic. A flaky out-of-tree test was removed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Implemented core24 support in the Python plugin by setting the interpreter to /usr/bin/python3.12 and refining confinement logic. Code coverage passed. A flaky related test was removed per maintainer feedback. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Updates the Python plugin to support core24 by setting the interpreter to /usr/bin/python3.12 and refining confinement logic. Changes passed code coverage checks. A flaky test was flagged for removal. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4587 Improvements to the PythonPlugin for core24 | snapcraft | open | Braindump of four proposed improvements to the Python plugin for core24 (linter for bad interpreter symlinks, shebang linter, post-prime shebang rewriting, gnome extension interplay). Open, unlabelled, no maintainer response beyond a Jira sync bot; related core24 Python plugin work has since landed. | |
| #6089 fix(plugins/python): fix core26 builds | snapcraft | merged | Merged to enable the Python plugin for strictly confined core26 snaps and add core26 spread tests. Approved by three reviewers, passed CI, and resolves #6020. | |
| #4942 Python plugin is broken in core24 | snapcraft | closed | Fixed the Python plugin failure in core24 caused by Python 3.12 virtual environment changes. The problem was resolved and merged in pull request #4946. | |
| #5209 tests: enable core24 plugin tests | snapcraft | merged | Merged after four reviewers approved. The changes enable core24 plugin tests across 132 files, adding 2,795 lines. CI checks passed and the code was successfully integrated into the main branch. |