sys-apps/portage-2.2.00.14555 currently has python_dep=">=dev-lang/python-2.5 <dev-lang/python-3.0" as its python dependencies. This is incorrect as when "* Byte compiling python modules for python-2.5 .. ..." results in many "SyntaxError: invalid syntax" messages. Examples: except UninstallFailure as e: ^ SyntaxError: invalid syntax myfd = os.open(lockfilename, os.O_CREAT|os.O_RDWR, 0o660) ^ SyntaxError: invalid syntax The changelogs from portage svn are: r14292 - Update syntax of numbers for compatibility with Python 3. r14289 - Update syntax of 'except' statements for compatibility with Python 3. sys-apps/portage-2.2.00.14555 deps should be changed to python-2.6 (or some other version that is compatible with Python 3).
correct, the dependency must be bumped to python-2.6
thanks, I just committed this dependency change.