← Back to issue list

uv plugin should compile bytecode

View original Github issue

Metadata

Project
craft-parts
Number
#954
Type
issue
State
open
Author
lengau
Labels
Created
2025-01-07 20:25:00+00:00
Updated
2025-03-11 14:28:43+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

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

No evaluation history available.