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

Can’t you just shebang a python script to make it feel like a normal executable?


Sure but you can't shebang all of the deps... Unless your `normal executable` embeds a Python dependency-manager.



You 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


If you zip a Python package with a __main__.py, it’s executable by the interpreter.





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

Search: