The Python Developers Guide (referenced above) refers to a distutils function called "distutils_tkinter_exists" which does not seem to exist. The other function mentioned in the same section, "python_tkinter_exists", works as expected. Further, the advice in the Developers Handbook at http://devmanual.gentoo.org/ebuild-writing/functions/src_compile/distutils/index.html says to use another function called "distutils_python_tkinter" which also seems to work. Please correct whichever happens to be wrong. I would suggest choosing ONE way of testing for the presence of TK support in Python, and updating all the docs to reflect the ONE way (unless, of course, there are good reasons to have different ways). Thanks! Reproducible: Always Steps to Reproduce: Emerge a package that contains the following code: pkg_setup() { distutils_tkinter_exists } Actual Results: /usr/local/portage/sci-chemistry/bkchem/bkchem-0.12.0_pre7.ebuild: line 24: distutils_tkinter_exists: command not found Expected Results: * You need to recompile python with Tkinter support. * Try adding: 'dev-lang/python tk' * in to /etc/portage/package.use * * ERROR: sci-chemistry/bkchem-0.12.0_pre7 failed. * Call stack: * ebuild.sh, line 49: Called pkg_setup * bkchem-0.12.0_pre7.ebuild, line 24: Called python_tkinter_exists * python.eclass, line 102: Called die * The specific snippet of code: * die "missing tkinter support with installed python" * The die message: * missing tkinter support with installed python Please assign to the Python project.
silly me :) Thanks for reporting. The right function is distutils_python_tkinter. Fixed in CVS.