Author Topic: Magiclantern uses Python 2, anyone want to update it to Python 3?  (Read 841 times)

names_are_hard

  • Contributor
  • Senior
  • *****
  • Posts: 293
  • 200D idiot
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

  • Contributor
  • Senior
  • *****
  • Posts: 293
  • 200D idiot
Re: Magiclantern uses Python 2, anyone want to update it to Python 3?
« Reply #1 on: December 11, 2019, 04:56:08 AM »
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.