← Back to issue list

Investigate dropping virtual envs from the python-based plugins

View original Github issue

Metadata

Project
rockcraft
Number
#746
Type
issue
State
open
Author
tigarmo
Labels
—
Created
Updated
Closed
—

Current evaluation

Replace per-part Python/Poetry venvs with direct system-Python pip installs; still open and unimplemented, with current code retaining venv and sitecustomize handling.

Suggested action: needs triage

Reason: The current tree still documents python3-venv as required and implements venv symlink handling and sitecustomize in rockcraft/plugins/python_common.py, so the requested cleanup is not resolved. The issue has no labels and its sole comment is an automated Jira-sync message, leaving this maintainer-authored proposal without recorded prioritization; PR #498 addresses the original Noble symlink breakage but not removal of the venv design.

Evaluated by: mr-cal-bot

Impact: 43 Quick Win: 12 Complexity: 58 Confidence: 92 Actionability: 66

Issue body

### What needs to get done Instead of creating a venv in the part's install dir and pip-installing the packages, pip-install them directly into the Python installation (which must always exist). ### Why it needs to get done The Python and Poetry plugins are currently broken in 24.04 because of the new usrmerge handling in noble. Might as well take this opportunity to address this "liability". This also lets us drop our custom sitecustomize, and bypasses the need to think about symlinks.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 43
Quick Win: 12
Complexity: 58
Confidence: 92
Actionability: 66
needs triage Replace per-part Python/Poetry venvs with direct system-Python pip installs; still open and unimplemented, with current code retaining venv and sitecustomize handling.
stealth/space-bunny-alpha
Impact: 64
Quick Win: 26
Complexity: 52
Confidence: 92
Actionability: 84
keep open Python and Poetry plugins still create venvs and custom sitecustomize files, breaking on Ubuntu 24.04 with usrmerge; direct Python installation remains an open refactor.
qwen/qwen3.6-35b-a3b
Impact: 65
Quick Win: 16
Complexity: 65
Confidence: 70
Actionability: 70
needs triage Feature request to drop virtual environments from Python-based plugins and pip-install directly into system Python to fix usrmerge issues in 24.04 and reduce technical debt.
qwen/qwen3.8-27b
Impact: 65
Quick Win: 20
Staleness: 55
Complexity: 70
Confidence: 60
Support Request: 5
keep open Investigate dropping virtual envs from python-based plugins to fix 24.04 usrmerge breakage and simplify sitecustomize/symlink handling. Last activity 381 days ago; venv-based approach still present in codebase.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 60
Confidence: 75
Support Request: 10
needs triage Investigating removal of virtual environments from Python plugins to resolve Ubuntu 24.04 usrmerge breakage. Currently unlabelled, unassigned, and inactive for over a year with only an automated Jira sync comment.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 60
Confidence: 75
Support Request: 10
needs triage Investigate removing virtual environments from Python-based plugins to resolve Ubuntu 24.04 usrmerge issues and simplify architecture. Currently inactive since November 2024 with no labels, assignee, or maintainer follow-up.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 65
Confidence: 80
Support Request: 10
needs triage Investigate removing virtual environments from Python plugins to install packages directly into the system Python, addressing Ubuntu 24.04 usrmerge issues. Currently inactive with no maintainer triage or labels.

Update history

No update history recorded yet.

Related work

  • Related To: rockcraft#498 (confidence 95%)

    Commit 05489c80 removed usrmerge-breaking Python venv symlinks, addressing the immediate Noble symptom while retaining venvs and sitecustomize.

Related issues

No related issues found above the similarity threshold.