huettel@grenadine ~ $ equery files marble File "/usr/bin/equery", line 271 print pp.path(" /" + c[0]) ^ SyntaxError: invalid syntax huettel@grenadine ~ $ eselect python list Available Python interpreters: [1] python2.6 [2] python3.1 *
Gentoolkit-0.3.0 is our branch of gentoolkit that has support for py3k. It's in the tree now. Py3k support isn't planned for the current stable branch, but not sure if the ebuild could be updated to reflect that... I'll leave that up to the maintainer. The above was just FYI.
This is a bit confusing (for the user). As the current stage3 tarballs now come with python-3.* as the system python, one would expect to be able to install from a stage3, upgrade all packages, and then run revdep-rebuild (after having installed gentoolkit). Currently, this is possible. revdep-rebuild will kind of run, but not without error, e.g: # revdep-rebuild -i * Configuring search environment for revdep-rebuild File "<string>", line 1 import os; import pwd; print pwd.getpwuid(os.getuid())[0] ^ SyntaxError: invalid syntax This is from the get_search_env() function in the revdep-rebuild script. So I appreciate that the unstable version of gentoolkit supports python3, it is still an issue for users running stable.
unfortunately, they will have to either package.keyword it it, or wait a few more days and then put in a stabilization request. Apr 11 was when -0.3.0 was released so in 2 more days the 30 day minimum requirement will have been met.
Or perhaps you could explicitly call "python2" in get_search_env()
The 0.3.0 branch of gentoolkit will be requested to be stable shortly.
This is fixed in gentoolkit-0.3.0
Thank you!