3 ms·
Can’t you just shebang a python script to make it feel like a normal executable?
by sokoloff 6y ago
Can’t you just shebang a python script to make it feel like a normal executable?
- CoffeeDregs 6y agoSure but you can't shebang all of the deps... Unless your `normal executable` embeds a Python dependency-manager.
- d0mine 6y ago#!/usr/bin/fades https://github.com/PyAr/fades#what-is-fades https://github.com/PyAr/fades#what-is-fades
- wyqydsyq 6y agoYou can do it with Node as well, this works: #!/usr/bin/env node But similarly to with Python, it still requires you have the runtime installed along with any packages your thing depends on
- ttyprintk 6y agoIf you zip a Python package with a __main__.py, it’s executable by the interpreter.
- medecau 6y agohttps://shiv.readthedocs.io/en/latest/ https://shiv.readthedocs.io/en/latest/ https://pex.readthedocs.io/en/latest/ https://pex.readthedocs.io/en/latest/