▲ | theshrike79 4 days ago | ||||||||||||||||||||||||||||||||||
uv + the new way of adding the required packages in the comments is pretty good. you can go `uv run script.py` and it'll automatically fetch the libraries and run the script in a virtual environment. Still no match for Go though, shipping a single cross-compiled binary is a joy. And with a bit of trickery you can even bundle in your whole static website in it :) Works great when you're building business logic with a simple UI on top. | |||||||||||||||||||||||||||||||||||
▲ | richid 4 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
I've been out of the Python game for a while but I'm not surprised there is yet another tool on the market to handle this. You really come to appreciate when these batteries are included with the language itself. That Go binary will _always_ run but that Python project won't build in a few years. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
▲ | lenkite 4 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
uv is the new hotness now. Let us check back in 5 years... | |||||||||||||||||||||||||||||||||||
▲ | traceroute66 4 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
> you can go `uv run script.py` and it'll automatically fetch the libraries and run the script in a virtual environment. Yeah, but you still have to install `uv` as a pre-requisite. And you still end up with a virtual environment full of dependency hell. And then of course we all remember that whole messy era when Python 2 transitioned to Python 3, and then deferred it, and deferred it again.... You make a fair point, of course it is technically possible to make it (slightly) "cleaner". But I'll still take the Go binary thanks. ;-) | |||||||||||||||||||||||||||||||||||
|