←back to thread

265 points tosh | 1 comments | | HN request time: 0.341s | source
Show context
ndr ◴[] No.44366331[source]
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-by...

replies(1): >>44370392 #
elyall ◴[] No.44370392[source]
uv's guide for use in containers is a better reference for this: https://docs.astral.sh/uv/guides/integration/docker/#compili...
replies(1): >>44370527 #
1. ndr ◴[] No.44370527[source]
Agreed 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.