3 ms·
PSA careful replacing `pip` with `uv` thinking it's a drop-in replacement. By default `uv` won't generate `pyc` files which might make your service much slower
by ndr 1y ago
PSA careful replacing `pip` with `uv` thinking it's a drop-in replacement.
By default `uv` won't generate `pyc` files which might make your service much slower to start.
See https://docs.astral.sh/uv/reference/settings/#pip_compile-bytecode https://docs.astral.sh/uv/reference/settings/#pip_compile-by...
- elyall 1y agouv's guide for use in containers is a better reference for this: https://docs.astral.sh/uv/guides/integration/docker/#compiling-bytecode https://docs.astral.sh/uv/guides/integration/docker/#compili...
- ndr 1y agoAgreed if you're going there from the start. I stumbled on this by porting something using that was previously pip, and that surprisingly different default has been a foot gun.