5 ms·
Except you can bake apps into a single stand-alone binary executable for both Node.JS[1] and Python[2] [1] https://www.npmjs.com/package/pkg https://www.npmjs.
by wyqydsyq 6y ago
Except you can bake apps into a single stand-alone binary executable for both Node.JS[1] and Python[2]
[1] https://www.npmjs.com/package/pkg https://www.npmjs.com/package/pkg
[2] https://github.com/marcelotduarte/cx_Freeze https://github.com/marcelotduarte/cx_Freeze
- sokoloff 6y agoCan’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/