Hacker News new | past | comments | ask | show | jobs | submit login

Does someone know if there is a way to compile python programs to some sort of static binary?

I have a GPS watch and some old Python 2 script to export the data (found it online (unmaintained) a few years ago).

However, when Python 2 will be sunsetted I am a bit worried that Linux distributions will stop packaging the dependencies of said script, but I would like to keep using it until the watch breaks.




You could give py2exe a try. They have an old python2 version that might work for you.

https://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/


Thanks, sounds like what I am looking for, but sadly it doesn't seem to be available for Linux :-/


Which script are you talking about? Can you send me a link to it or or something? Email is in my profile.

I would be interested to see if I can update to python 3.


Docker could do what you want, though it's definitely not an efficient solution.


Nice idea. Might be a good start to learn to build my own docker images.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: