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

Diff of /eclass/python.eclass

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

Revision 1.7 Revision 1.10
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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.7 2003/10/24 07:12:42 pythonhead Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.10 2003/11/01 18:33:58 liquidx 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.
61# name: python_makesym 61# name: python_makesym
62# desc: run without arguments, it will create the /usr/bin/python symlinks 62# desc: run without arguments, it will create the /usr/bin/python symlinks
63# to the latest installed version 63# to the latest installed version
64# 64#
65python_makesym() { 65python_makesym() {
66 alternatives_auto_makesym "/usr/bin/python" "/usr/bin/python[0-9].[0-9]" 66 alternatives_auto_makesym "/usr/bin/python" "python[0-9].[0-9]"
67 alternatives_auto_makesym "/usr/bin/python2" "/usr/bin/python[0-9].[0-9]" 67 alternatives_auto_makesym "/usr/bin/python2" "python2.[0-9]"
68} 68}
69 69
70# 70#
71# name: python_tkinter_exists 71# name: python_tkinter_exists
72# desc: run without arguments, it will return TRUE(0) if python is compiled 72# desc: run without arguments, it will return TRUE(0) if python is compiled
148 compileopts="" 148 compileopts=""
149 else 149 else
150 compileopts="-q" 150 compileopts="-q"
151 fi 151 fi
152 152
153 ebegin "Byte Compiling Python modules for ${PYVER} .." 153 ebegin "Byte compiling python modules for python-${PYVER} .."
154 python${PYVER} ${ROOT}usr/lib/python${PYVER}/compileall.py ${compileopts} $@ 154 python${PYVER} ${ROOT}usr/lib/python${PYVER}/compileall.py ${compileopts} $@
155 python${PYVER} -O ${ROOT}usr/lib/python${PYVER}/compileall.py ${compileopts} $@ 155 python${PYVER} -O ${ROOT}usr/lib/python${PYVER}/compileall.py ${compileopts} $@
156 eend $? 156 eend $?
157} 157}
158 158

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20