Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The script now works like a standalone executable

But whoever runs this has to install uv first, so not really standalone.



This is a PEP and not specific to uv: https://peps.python.org/pep-0723/


You need a runner for scripts that follow the PEP (actually the packaging standard established initially by the PEP, hence the note about it's historical status.)

The two main runners I am aware of are uv and pipx. (Any compliant runner can be referenced in the shebang to make a script standalone where shebangs are supported.)


The shebang line references uv.


Is it time for a Debian `alternatives`-style system for PIP 723 compliant Python wrappers yet?

I could totally see `#!/usr/bin/python723` become a thing :)


And a shell


They gotta have a computer too. And a source of power.


And my ax... Oh, this is hackernews.


"I write code and am curious I am a hacker"

"Lol, no I break into computer systems I am a hacker"

"Geeze hell no I have an axe, I am an OG hacker"


I don’t think they need a shell unless uv itself requires it, the shebang is handled by the exec syscall.


Of course. Hense the bash shebang - the shebang is the step before the shell is used. Thanks.


And an operating system


No, not a shell. Just a /usr/bin/env


Is that a dare? /s

Small price to pay for escaping python dependency hell.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: