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

Diff of /eclass/python.eclass

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

Revision 1.29 Revision 1.30
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.29 2006/10/14 20:27:21 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.30 2007/02/03 00:18:52 kloeri 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.
101# support. If not, prints an error message and dies. 101# support. If not, prints an error message and dies.
102# 102#
103python_tkinter_exists() { 103python_tkinter_exists() {
104 if ! python -c "import Tkinter" >/dev/null 2>&1; then 104 if ! python -c "import Tkinter" >/dev/null 2>&1; then
105 eerror "You need to recompile python with Tkinter support." 105 eerror "You need to recompile python with Tkinter support."
106 eerror "Try adding: 'dev-lang/python X tk'" 106 eerror "Try adding: 'dev-lang/python tk'"
107 eerror "in to /etc/portage/package.use" 107 eerror "in to /etc/portage/package.use"
108 echo 108 echo
109 die "missing tkinter support with installed python" 109 die "missing tkinter support with installed python"
110 fi 110 fi
111} 111}

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20