Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: python-r1.eclass ChangeLog
Date: Mon, 29 Oct 2012 09:24:08
Message-Id: 20121029092359.2506121600@flycatcher.gentoo.org
1 mgorny 12/10/29 09:23:59
2
3 Modified: python-r1.eclass ChangeLog
4 Log:
5 Add getters for common Python variables.
6
7 Revision Changes Path
8 1.9 eclass/python-r1.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-r1.eclass?rev=1.9&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-r1.eclass?rev=1.9&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-r1.eclass?r1=1.8&r2=1.9
13
14 Index: python-r1.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v
17 retrieving revision 1.8
18 retrieving revision 1.9
19 diff -u -r1.8 -r1.9
20 --- python-r1.eclass 29 Oct 2012 09:22:13 -0000 1.8
21 +++ python-r1.eclass 29 Oct 2012 09:23:58 -0000 1.9
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2012 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.8 2012/10/29 09:22:13 mgorny Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.9 2012/10/29 09:23:58 mgorny Exp $
27
28 # @ECLASS: python-r1
29 # @MAINTAINER:
30 @@ -283,6 +283,52 @@
31 done
32 }
33
34 +# @FUNCTION: python_get_PYTHON
35 +# @USAGE: [<impl>]
36 +# @DESCRIPTION:
37 +# Obtain and print the path to the Python interpreter for the given
38 +# implementation. If no implementation is provided, ${EPYTHON} will
39 +# be used.
40 +#
41 +# If you just need to have PYTHON set (and exported), then it is better
42 +# to use python_export() directly instead.
43 +python_get_PYTHON() {
44 + debug-print-function ${FUNCNAME} "${@}"
45 +
46 + python_export "${@}" PYTHON
47 + echo "${PYTHON}"
48 +}
49 +
50 +# @FUNCTION: python_get_EPYTHON
51 +# @USAGE: <impl>
52 +# @DESCRIPTION:
53 +# Obtain and print the EPYTHON value for the given implementation.
54 +#
55 +# If you just need to have EPYTHON set (and exported), then it is better
56 +# to use python_export() directly instead.
57 +python_get_EPYTHON() {
58 + debug-print-function ${FUNCNAME} "${@}"
59 +
60 + python_export "${@}" EPYTHON
61 + echo "${EPYTHON}"
62 +}
63 +
64 +# @FUNCTION: python_get_sitedir
65 +# @USAGE: [<impl>]
66 +# @DESCRIPTION:
67 +# Obtain and print the 'site-packages' path for the given
68 +# implementation. If no implementation is provided, ${EPYTHON} will
69 +# be used.
70 +#
71 +# If you just need to have PYTHON_SITEDIR set (and exported), then it is
72 +# better to use python_export() directly instead.
73 +python_get_sitedir() {
74 + debug-print-function ${FUNCNAME} "${@}"
75 +
76 + python_export "${@}" PYTHON_SITEDIR
77 + echo "${PYTHON_SITEDIR}"
78 +}
79 +
80 # @FUNCTION: python_copy_sources
81 # @DESCRIPTION:
82 # Create a single copy of the package sources (${S}) for each enabled
83
84
85
86 1.475 eclass/ChangeLog
87
88 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.475&view=markup
89 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.475&content-type=text/plain
90 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.474&r2=1.475
91
92 Index: ChangeLog
93 ===================================================================
94 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
95 retrieving revision 1.474
96 retrieving revision 1.475
97 diff -u -r1.474 -r1.475
98 --- ChangeLog 29 Oct 2012 09:22:13 -0000 1.474
99 +++ ChangeLog 29 Oct 2012 09:23:58 -0000 1.475
100 @@ -1,6 +1,9 @@
101 # ChangeLog for eclass directory
102 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
103 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.474 2012/10/29 09:22:13 mgorny Exp $
104 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.475 2012/10/29 09:23:58 mgorny Exp $
105 +
106 + 29 Oct 2012; Michał Górny <mgorny@g.o> python-r1.eclass:
107 + Add getters for common Python variables.
108
109 29 Oct 2012; Michał Górny <mgorny@g.o> python-r1.eclass:
110 Add support for obtaining Python site-packages directory.