Re: [hatari-devel] Build fails with python3

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On Sun, Jan 1, 2017 at 5:36 PM, Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:
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.


Not if there is no /usr/bin/python. (but /usr/bin/python2)

 
(Is there nowadays consensus/standard which path should
be used for python2 and which for python3?)

Heh, you are funny. In that case I'm sure that you need to bruteforce it . And let cmake replace the shebang.
I've seen /usr/bin/python, /usr/bin/python2/3, /usr/bin/python2.x,/usr/bin/python3.x. I've seen them all.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/