3 ms·
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 dat
by arendtio 7y ago
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.
- xd1936 7y agoYou 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/ https://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/
- arendtio 7y agoThanks, sounds like what I am looking for, but sadly it doesn't seem to be available for Linux :-/
- BeefySwain 7y agoDocker could do what you want, though it's definitely not an efficient solution.
- arendtio 7y agoNice idea. Might be a good start to learn to build my own docker images.
- throwawaymlc 7y agoWhich 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.