Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219744 - Python Developers guide refers to distutils_tkinter_exists which does not exist
Summary: Python Developers guide refers to distutils_tkinter_exists which does not exist
Status: RESOLVED FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Project-specific documentation (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL: http://www.gentoo.org/proj/en/Python/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-29 18:52 UTC by Craig Finch
Modified: 2008-05-13 12:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Finch 2008-04-29 18:52:05 UTC
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.
Comment 1 Ali Polatel (RETIRED) gentoo-dev 2008-05-13 12:51:39 UTC
silly me :) Thanks for reporting. The right function is distutils_python_tkinter.
Fixed in CVS.