News for hackers. Stuff that matters.
Re:Sunsetting Python 2 by arendtio on Monday September 09, 2019 @09:36AM (#20917987)
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.

Re:Sunsetting Python 2 by xd1936 on Monday September 09, 2019 @10:06AM (#20918273)
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/

Re:Sunsetting Python 2 by arendtio on Wednesday September 11, 2019 @03:10PM (#20943632)
Thanks, sounds like what I am looking for, but sadly it doesn't seem to be available for Linux :-/
Re:Sunsetting Python 2 by throwawaymlc on Sunday September 15, 2019 @08:20AM (#20976905)
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.

Re:Sunsetting Python 2 by BeefySwain on Monday September 09, 2019 @10:46AM (#20918659)
Docker could do what you want, though it's definitely not an efficient solution.
Re:Sunsetting Python 2 by arendtio on Wednesday September 11, 2019 @03:14PM (#20943669)
Nice idea. Might be a good start to learn to build my own docker images.