I've been fixing python 3 support within the plugin, so that it's
buildable and usable with both Python 2 and Python 3. [1]
The plugin now builds against Python 3, and most of the selftests now
pass (I'm testing against 3.2, fwiw).
(It still builds against Python 2, and all of the selftests pass, on my
machine, at least, with 2.7).
My aim is to support both Python 2 and Python 3 from a single source
tree, without needing to run 2to3 on the .py sources. (The plugin will
need to be built twice, once for each python version, and only one build
of the plugin can be loaded into gcc at once).
To make this easier, I'm using the compatibility module named "six":
http://pypi.python.org/pypi/six/
This is now needed at both buildtime, and at runtime.
I'm assuming this isn't too onerous a dependency (it's just one .py
file; fwiw, I've packaged it for Fedora)
Dave
[1]
http://git.fedorahosted.org/git/?p=gcc-python-plugin.git;a=commitdiff;h=7...