pypa / build

A simple, correct Python build frontend
https://build.pypa.io
MIT License
735 stars 120 forks source link

perf: avoid compiling unused bytecode #752

Closed henryiii closed 6 months ago

henryiii commented 7 months ago

Compiling bytecode is supposed to make usage more consistent for interaction. But it compiles everything, which isn't required for a single use non-interactive temporary environment. We can potentially save a bit of time this way.

This will need to be skipped for the uv backend in #751, since uv defaults to not compiling bytecode, and instead requires a flag to do so (most recent version). But flags aren't identical anyway.

henryiii commented 6 months ago

I’ll leave merging this up to @layday so it doesn’t interfere with #751.