fix: enable python bytecode in the uv plugin
Metadata
Current evaluation
Merged PR #1406 (commit 28dafc19) enables Python bytecode compilation in the uv plugin, with UV_COMPILE_BYTECODE=0 as an opt-out; shipped in 2.28.0.
Resolution: closed resolved
Reason: PR #1406 was merged as commit 28dafc19, enabling bytecode compilation by default to align uv with the Python and Poetry plugins. The 2.28.0 changelog confirms the change and documents the opt-out environment variable.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This brings the `uv` plugin in line with `python` (version 1 and 2) and `poetry`.
In snaps, launching python can still be slow by default because bytecode is not generated for the standard library when extracting `stage-packages`.
- [ ] Have you followed the guidelines for contributing?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint && make test`?
- [x] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1406 (commit 28dafc19) enables Python bytecode compilation in the uv plugin, with UV_COMPILE_BYTECODE=0 as an opt-out; shipped in 2.28.0. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #1406 in commit 28dafc19, enabling Python bytecode compilation in the uv plugin by default; set UV_COMPILE_BYTECODE=0 to disable it. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged canonical/craft-parts#1406, enabling Python bytecode generation in the uv plugin to align it with the python and poetry plugins. Stdlib bytecode generation during stage-packages extraction remains unchanged. | |
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged an external contribution enabling Python bytecode generation in the uv plugin. This aligns the plugin with python and poetry implementations, resolving slow snap launch times caused by missing standard library bytecode during stage-package extraction. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #954 uv plugin should compile bytecode | craft-parts | closed | uv bytecode compilation was enabled by default and shipped in craft-parts 2.28.0 via merged PR #1406 (commit 28dafc19). | |
| #1486 docs: update uv plugin reference | craft-parts | merged | Merged PR #1486 as commit f91f0d4c, documenting UV_COMPILE_BYTECODE and correcting minor details in the uv plugin reference. | |
| #1003 fix: don't require a specific python interpreter for uv | craft-parts | merged | PR #1003 by bepri merged into craft-parts, dropping uv's fixed Python-interpreter requirement (+18/-2, 3 files), closing bug #991. Backported to hotfix/2.4 via merged PR #1029. |