← Back to issue list

uv plugin should compile bytecode

View original Github issue

Metadata

Project
craft-parts
Number
#954
Type
issue
State
closed
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

Uv plugin bytecode compilation was addressed and merged in pull request #1406. The change sets UV_COMPILE_BYTECODE=1 to precompile Python bytecode, optimizing runtime performance for snap distributions.

Suggested action:

No scores available.

Issue body

### What needs to get done The uv plugin should compile Python bytecode in the virtual environment by setting [`UV_COMPILE_BYTECODE=1`](https://docs.astral.sh/uv/configuration/environment/#uv_compile_bytecode) in the environment. (This also allows a user or application to override it if they don't want to do so.) ### Why it needs to get done The distributed package shouldn't have to compile the bytecode, especially for snaps, where the bytecode would have to be compiled on each run.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Uv plugin bytecode compilation was addressed and merged in pull request #1406. The change sets UV_COMPILE_BYTECODE=1 to precompile Python bytecode, optimizing runtime performance for snap distributions.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 15
Confidence: 85
Support Request: 10
needs triage Request to set UV_COMPILE_BYTECODE=1 in the uv plugin to pre-compile Python bytecode and avoid runtime compilation, particularly for snaps. Unlabelled and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 10
Confidence: 80
Support Request: 10
needs triage Feature request to set UV_COMPILE_BYTECODE=1 in the uv plugin environment to optimize snap packaging. Unlabelled and inactive for over 1.5 years with no maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 15
Confidence: 75
Support Request: 10
needs triage Enable UV_COMPILE_BYTECODE=1 in the uv plugin to precompile Python bytecode, eliminating runtime compilation overhead for snaps. Open, inactive for over a year, awaiting implementation.

Update history

Date Change
closed

Related issues

Issue Project State Summary Similarity
#1406 fix: enable python bytecode in the uv plugin craft-parts merged Merged. Enables Python bytecode generation in the uv plugin to align with python and poetry plugins, improving snap launch performance. Approved by two reviewers and passed CI checks.
74%