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

Diff of /eclass/python.eclass

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

Revision 1.20 Revision 1.21
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.20 2005/07/06 20:23:20 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.21 2005/07/11 15:08:06 swegener 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.
63__python_version_extract() { 63__python_version_extract() {
64 verstr=$1 64 verstr=$1
65 export PYVER_MAJOR=${verstr:0:1} 65 export PYVER_MAJOR=${verstr:0:1}
66 export PYVER_MINOR=${verstr:2:1} 66 export PYVER_MINOR=${verstr:2:1}
67 export PYVER_MICRO=${verstr:4} 67 export PYVER_MICRO=${verstr:4}
68 export PYVER="${PYVER_MAJOR}.${PYVER_MINOR}" 68 export PYVER="${PYVER_MAJOR}.${PYVER_MINOR}"
69} 69}
70 70
71python_version() { 71python_version() {
72 local tmpstr 72 local tmpstr
73 python=${python:-/usr/bin/python} 73 python=${python:-/usr/bin/python}

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20