dgibson / dtc

Device Tree Compiler
218 stars 130 forks source link

pylibfdt: fix compatibility with python2 #88

Closed jpalus closed 3 weeks ago

jpalus commented 1 year ago

c001fc01a43e ("pylibfdt: fix swig build in install") introduced python3-only super() invocation that fails with python2

File "setup.py", line 48, in run return super().run() TypeError: super() takes at least 1 argument (0 given)

while setup.py still claims to be compatible with both python versions:

While Python 3 is the default, it's also possible to invoke this setup.py script with Python 2.

use legacy syntax that works in all python versions

Fixes: c001fc01a43e ("pylibfdt: fix swig build in install")

jpalus commented 3 weeks ago

No longer relevant since 3501d37.