Add UV_COMPILE_BYTECODE environment variable (#6530)

## Summary

Closes https://github.com/astral-sh/uv/issues/6493.
This commit is contained in:
Charlie Marsh 2024-08-23 14:05:32 -04:00 committed by GitHub
parent d0dda3798d
commit 9d1cd8e48c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 2 deletions

View file

@ -61,6 +61,8 @@ uv accepts the following command-line arguments as environment variables:
- `UV_PYTHON_DOWNLOADS`: Equivalent to the
[`python-downloads`](../reference/settings.md#python-downloads) setting and, when disabled, the
`--no-python-downloads` option. Whether uv should allow Python downloads.
- `UV_COMPILE_BYTECODE`: Equivalent to the `--compile-bytecode` command-line argument. If set, uv
will compile Python source files to bytecode after installation.
In each case, the corresponding command-line argument takes precedence over an environment variable.