Menu

#842 scons script fails

General
open
nobody
None
5
2019-09-11
2019-07-30
Anonymous
No

I tried to compile fceux from scratch, using both the latest stable release (2.2.3) code and also the git master branch, but in both cases runnning "scons" results in such message:

$ scons
scons: Reading SConscript files ...
  File "/home/mateusz/svn/fceux/trunk/SConstruct", line 73

    print "platform: ", env['PLATFORM']
                       ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("platform: ", env['PLATFORM'])?

I use the default scons tool, as shipped with my distro:

scons -v
SCons by Steven Knight et al.:
        script: v3.0.1.74b2c53bc42290e911b334a6b44f187da698a668, 2017/11/14 13:16:53, by bdbaddog on hpmicrodog
        engine: v3.0.1.74b2c53bc42290e911b334a6b44f187da698a668, 2017/11/14 13:16:53, by bdbaddog on hpmicrodog
        engine path: ['/usr/lib/scons-3.0.1/SCons']
Copyright (c) 2001 - 2017 The SCons Foundation

Discussion

  • zeromus

    zeromus - 2019-07-30

    use an older scons. this newer scons is python 3 and can't handle python 2 print syntax. who knows what other problems you will run into

     
  • hexregex

    hexregex - 2019-09-10

    A current version of SCons can build fceux (tested latest git, Arch Linux) by converting the Python 2 only code in SConstruct and src/SConscript to Python 3:
    http://python-future.org/futurize_cheatsheet.html

    $ pip install future (or install python-future with your distro)
    $ futurize --stage1 -w SConstruct src/SConscript
    $ scons

    Devs please update/test the build to work with current versions of SCons.

     

    Last edit: hexregex 2019-09-10
  • zeromus

    zeromus - 2019-09-10

    How about you do it and submit a PR on github

     
  • hexregex

    hexregex - 2019-09-11

    Submitted.

     

    Last edit: hexregex 2019-09-11

Log in to post a comment.

MongoDB Logo MongoDB