fcd
fcd copied to clipboard
Using 'python' binary for Python 2
PEP 394 recommends the usage of python2 when invoking Python 2 scripts instead of python, as the latter might be different depending on the distribution (and indeed it is - it's Python 3 in Arch Linux).
Which script(s) are you talking about?
Upon further inspection, it seems that it's actually cmake generating it like that.
[ 3%] Built target emu
[ 4%] Generating bindings.cpp
File "/home/zatherz/fcd/fcd/python/bindings.py", line 131
raise ValueError, "callback type %s" % cFunction.returnType
^
SyntaxError: invalid syntax
make[2]: *** [CMakeFiles/fcd.dir/build.make:62: bindings.cpp] Error 1
make[2]: *** Deleting file 'bindings.cpp'
make[1]: *** [CMakeFiles/Makefile2:67: CMakeFiles/fcd.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
The script comes from fcd/python/bindings.py (but doesn't have a shebang). It might not be a ton of effort to make it 2-3 compatible. Would you like to do it?
With that said, fcd itself is likely to keep linking against Python 2 for a while.