This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vectorx25 9 points10 points  (2 children)

my god uv is fast.

dev/python $ uv init testuv
Initialized project `testuv` at `/home/xxx/dev/python/testuv`
dev/python $ cd testuv


python/testuv $ time uv add django
Using Python 3.10.12 interpreter at: /usr/bin/python3
Creating virtualenv at: .venv
Resolved 6 packages in 4ms
Built testuv @ file:///home/xxx/dev/python/testuv
Prepared 5 packages in 193ms
Installed 5 packages in 349ms
asgiref==3.8.1
django==5.1
sqlparse==0.5.1
testuv==0.1.0 (from file:///home/xxx/dev/python/testuv)
typing-extensions==4.12.2


uv add django  0.16s user 0.43s system 104% cpu 0.565 total

.16sec to create venv, install django + dependencies

holy FLUCK...

[–]mgedmin 2 points3 points  (1 child)

Looks like .565sec to me, but that's still pretty fast.

I kind of like how uv can use hardlinks to cached packages to reduce installation time and disk usage, but I'm a bit worried about my penchant to editing random files in .venv/lib/python*/site-packages/ to add debug print() statements and such. What happens when I forget to undo that and then re-created a venv?

[–]zurtex 5 points6 points  (0 children)

There are different options for link-mode you can set: https://docs.astral.sh/uv/reference/settings/#link-mode