4 ms·
> The script now works like a standalone executable But whoever runs this has to install uv first, so not really standalone.
by thunky 1y ago
> The script now works like a standalone executable
But whoever runs this has to install uv first, so not really standalone.
- hshdhdhehd 1y agoAnd a shell
- dmd 1y agoThey gotta have a computer too. And a source of power.
- rafael-lua 1y agoAnd my ax... Oh, this is hackernews.
- hshdhdhehd 1y ago"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"
- Zamiel_Snawley 1y agoI don’t think they need a shell unless uv itself requires it, the shebang is handled by the exec syscall.
- hshdhdhehd 1y agoOf course. Hense the bash shebang - the shebang is the step before the shell is used. Thanks.
- lgas 1y agoAnd an operating system
- NewJazz 1y agoNo, not a shell. Just a /usr/bin/env
- TeeMassive 1y agoThis is a PEP and not specific to uv: https://peps.python.org/pep-0723/ https://peps.python.org/pep-0723/
- NewJazz 1y agoThe shebang line references uv.
- lxgr 1y agoIs 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 :)
- dragonwriter 1y agoYou 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.)
- gre 1y agoIs that a dare? /s Small price to pay for escaping python dependency hell.