Magiclantern uses Python 2, anyone want to update it to Python 3?

Started by names_are_hard, December 10, 2019, 12:34:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

names_are_hard

Just found out the Magiclantern build process has some dependency on Python 2.  I don't know exactly what it is, but on my system, where Python 3 is the default, it fails "make zip".  Plain "make" succeeds.  I think something to do with the nasty way module_strings.h is generated.

Anyway - should somebody with some Python experience want to port the build process to v3, it would be much appreciated.  Python 2 will be unsupported in a month.  It would be a good way for someone to contribute, without needing ARM / Assembly / C experience, but able to build ML by following the instructions.

Mostly I am making this topic so people realise ML is very soon to be dependent on completely unsupported software:
https://pythonclock.org/?1

names_are_hard

I did some work here.  While I haven't made it python3 compatible, I've changed what I think are all relevant occurences of plain "python" to "python2".  This fixes "make zip" on my Linux system that has both python2 and python3, with python being python3.