python-2.6.8-r1 builds and works fine with version 8.5 of both tcl+tk. When rebuilding with portage @preserved-rebuild feature, the 8.5 libs of both tcl and tk are preserved and used again when re-compiling python-2.6.8-r1. When you do a clean install with python-2.6.8-r1 with tcl and tk >=8.6, then it compiles fine, but is missing the _tkinter module. So as a workaround, until a real fix is around, i suggest to restrict the version dependency for both tcl and tk to <8.6
Well, this might have to do something with 8.6 not being listed in setup.py (detect_tkinter). It's listed in 2.7 - not sure, though, if other fixes necessary.
+ 30 Jun 2013; Mike Gilbert <floppym@gentoo.org> -python-2.5.4-r4.ebuild, + -python-2.6.8.ebuild, python-2.5.4-r5.ebuild, python-2.6.8-r1.ebuild: + Place upper bound on dev-lang/tk dep, bug 454342. Also stabilize on m68k since + nobody is responding on bug 458318.
http://mail.python.org/pipermail/new-bugs-announce/2009-June/005125.html Did you tried to add 8.6 there?
Please backport that fix instead of this version restrction. http://bugs.python.org/issue6244
+*python-2.6.8-r2 (30 Jun 2013) +*python-2.5.4-r6 (30 Jun 2013) + + 30 Jun 2013; Mike Gilbert <floppym@gentoo.org> +files/python-2.5-tcl86.patch, + +python-2.5.4-r6.ebuild, +python-2.6.8-r2.ebuild: + Apply patch to allow old python versions to use tk-8.6, bug 454342. Also fix + the python shebang in idle2.5 and pydoc2.5, bugs 275241 and 383009.