Re: [hatari-devel] Build fails with python3 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Hi,
On 01/01/2017 01:52 PM, Christer Solskogen wrote:
Probably because of this:
-- Found PythonInterp: /usr/bin/python (found version "3.5.2")
[100%] Generating conftypes.py
File "./gentypes.py", line 24
print "# content generated by %s" % os.path.basename(sys.argv[0])
^
SyntaxError: invalid syntax
make[2]: *** [python-ui/CMakeFiles/conftypes.dir/build.make:62:
python-ui/conftypes.py] Error 1
make[2]: *** Deleting file 'python-ui/conftypes.py'
make[1]: *** [CMakeFiles/Makefile2:1038:
python-ui/CMakeFiles/conftypes.dir/all] Error 2
make: *** [Makefile:128: all] Error 2
I guess python-ui/gentypes.py expects python2.
I updated it so that it works with both v2 & v3.
(Is there nowadays consensus/standard which path should
be used for python2 and which for python3?)
- Eero