plugins: refactor python plugin for subclassing
Metadata
Current evaluation
Merged PR #389 in commit b23e45b2, refactoring the Python plugin so applications can subclass it and override interpreter-location logic.
Resolution: closed resolved
Reason: PR #389 was approved and merged as commit b23e45b2, enabling application-specific Python interpreter selection through plugin subclassing.
Evaluated by: mr-cal-bot
No scores available.
Issue body
The location of the Python interpreter executable can depend on application-specific parameters that cannot be determined by a generic parts plugin. To address that, allow applications to subclass and override methods in the Python plugin in order to use custom logic to set the interpreter location.
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #389 in commit b23e45b2, refactoring the Python plugin so applications can subclass it and override interpreter-location logic. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in craft-parts PR #389 (b23e45b2), enabling Python plugin subclassing and method overrides for application-specific interpreter locations. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged a refactor of the Python plugin to enable subclassing and method overriding for custom interpreter location logic. Approved by one reviewer, passed CI checks, and modified three files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a refactoring of the Python plugin to enable subclassing. Applications can now override methods to implement custom logic for determining the Python interpreter executable location. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #384 plugins: refactor python plugin for subclassing | craft-parts | merged | Merged PR #384 as commit ce664e69, making the Python plugin subclassable so applications can override interpreter-location logic. | |
| #311 plugins: fix python shebang | rockcraft | merged | Merged PR #311 in commit 08e6a28c, replacing hardcoded plugin Python shebangs with ${PARTS_PYTHON_INTERPRETER} so interpreter overrides are honored. |