←back to thread

/usr/bin/env -S uv run

(simonwillison.net)
124 points jcbhmr | 1 comments | | HN request time: 0.208s | source
Show context
p4bl0 ◴[] No.42202491[source]
It's a neat trick, but it still depends on uv being installed and network connectivity.

What's the advantage of this that makes it worth despite these constraints, compared to e.g. using pyinstaller [1] to build and distribute a single executable file with the python interpreter and all the dependencies of your project bundled in it in the exact versions you chose in your development virtual environment?

[1] https://pyinstaller.org/

replies(2): >>42202645 #>>42202823 #
chippiewill ◴[] No.42202823[source]
It's not for production grade stuff, it's for small scripts you want to send to someone for a little job.
replies(1): >>42203224 #
1. fernandotakai ◴[] No.42203224[source]
sometimes, i want to share a script with a friend or with a coworker and setting everything up from scratch is such a pain.

this makes everything SO much easier.