Hacker News new | ask | show | jobs
by 0cf8612b2e1e 1 day ago
That’s not a bad idea. uvx feels like a temporary hack on which I can’t rely for a permanent deployment, but it is all probably fine. I would want to at least materialize a real environment so I know that it is not getting randomly deleted as cache/temp gets cleared.

Unfortunately, it’s still not my ideal use case of distributing executables to Windows machines. I really want a single artifact users could freely share without any pre-configuration. I guess I could have a batch/vbs script which would bootstrap uv plus the rest of the machinery, but that is more moving parts than I would like.

1 comments

pyexe and pyinstaller let you just ship an exe to run
They just unzip the Python executable and your source files to a temporary directory and run them from there (although they are a convenient way of doing that).

nuitka is a bit better (in the sense of not running executables from a temporary path) in that it really compiles your code into an executable in "standalone" mode.