/[gentoo-x86]/eclass/python.eclass
Gentoo

Diff of /eclass/python.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.24 Revision 1.25
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.24 2006/06/10 16:19:54 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.25 2006/06/16 13:54:25 marienz Exp $
4# 4#
5# Author: Alastair Tse <liquidx@gentoo.org> 5# Author: Alastair Tse <liquidx@gentoo.org>
6# 6#
7# A Utility Eclass that should be inherited by anything that deals with 7# A Utility Eclass that should be inherited by anything that deals with
8# Python or Python modules. 8# Python or Python modules.
96# support. If not, prints an error message and dies. 96# support. If not, prints an error message and dies.
97# 97#
98python_tkinter_exists() { 98python_tkinter_exists() {
99 if ! python -c "import Tkinter" >/dev/null 2>&1; then 99 if ! python -c "import Tkinter" >/dev/null 2>&1; then
100 eerror "You need to recompile python with Tkinter support." 100 eerror "You need to recompile python with Tkinter support."
101 eerror "That means: USE='tcltk' emerge python" 101 eerror "That means: USE='X tcltk' emerge python"
102 echo 102 echo
103 die "missing tkinter support with installed python" 103 die "missing tkinter support with installed python"
104 fi 104 fi
105} 105}
106 106

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20