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

Diff of /eclass/distutils.eclass

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

Revision 1.62 Revision 1.68
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/distutils.eclass,v 1.62 2009/09/09 19:26:00 arfrever Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.68 2009/12/24 04:21:39 arfrever Exp $
4 4
5# @ECLASS: distutils.eclass 5# @ECLASS: distutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# <python@gentoo.org> 7# <python@gentoo.org>
8# 8#
26 26
27if [[ -z "${DISTUTILS_DISABLE_PYTHON_DEPENDENCY}" ]]; then 27if [[ -z "${DISTUTILS_DISABLE_PYTHON_DEPENDENCY}" ]]; then
28 DEPEND="virtual/python" 28 DEPEND="virtual/python"
29 RDEPEND="${DEPEND}" 29 RDEPEND="${DEPEND}"
30fi 30fi
31
32if has "${EAPI:-0}" 0 1 2; then
31python="python" 33 python="python"
34else
35 python="die"
36fi
32 37
33# @ECLASS-VARIABLE: DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES 38# @ECLASS-VARIABLE: DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES
34# @DESCRIPTION: 39# @DESCRIPTION:
35# Set this to use separate source directories for each enabled version of Python. 40# Set this to use separate source directories for each enabled version of Python.
36 41
37# @ECLASS-VARIABLE: DISTUTILS_GLOBAL_OPTIONS 42# @ECLASS-VARIABLE: DISTUTILS_GLOBAL_OPTIONS
38# @DESCRIPTION: 43# @DESCRIPTION:
39# Global options passed to setup.py. 44# Global options passed to setup.py.
40 45
46# @ECLASS-VARIABLE: DISTUTILS_DISABLE_VERSIONING_OF_PYTHON_SCRIPTS
47# @DESCRIPTION:
48# Set this to disable renaming of Python scripts containing versioned shebangs
49# and generation of wrapper scripts.
50
41# @ECLASS-VARIABLE: DOCS 51# @ECLASS-VARIABLE: DOCS
42# @DESCRIPTION: 52# @DESCRIPTION:
43# Additional DOCS 53# Additional DOCS
44 54
55_distutils_hook() {
56 if [[ "$#" -ne 1 ]]; then
57 die "${FUNCNAME}() requires 1 argument"
58 fi
59 if [[ "$(type -t "distutils_src_${EBUILD_PHASE}_$1_hook")" == "function" ]]; then
60 "distutils_src_${EBUILD_PHASE}_$1_hook"
61 fi
62}
63
45# @FUNCTION: distutils_src_unpack 64# @FUNCTION: distutils_src_unpack
46# @DESCRIPTION: 65# @DESCRIPTION:
47# The distutils src_unpack function, this function is exported 66# The distutils src_unpack function, this function is exported.
48distutils_src_unpack() { 67distutils_src_unpack() {
49 if [[ "${EBUILD_PHASE}" != "unpack" ]]; then 68 if [[ "${EBUILD_PHASE}" != "unpack" ]]; then
50 die "${FUNCNAME}() can be used only in src_unpack() phase" 69 die "${FUNCNAME}() can be used only in src_unpack() phase"
51 fi 70 fi
52 71
56 has "${EAPI:-0}" 0 1 && distutils_src_prepare 75 has "${EAPI:-0}" 0 1 && distutils_src_prepare
57} 76}
58 77
59# @FUNCTION: distutils_src_prepare 78# @FUNCTION: distutils_src_prepare
60# @DESCRIPTION: 79# @DESCRIPTION:
61# The distutils src_prepare function, this function is exported 80# The distutils src_prepare function, this function is exported.
62distutils_src_prepare() { 81distutils_src_prepare() {
63 if ! has "${EAPI:-0}" 0 1 && [[ "${EBUILD_PHASE}" != "prepare" ]]; then 82 if ! has "${EAPI:-0}" 0 1 && [[ "${EBUILD_PHASE}" != "prepare" ]]; then
64 die "${FUNCNAME}() can be used only in src_prepare() phase" 83 die "${FUNCNAME}() can be used only in src_prepare() phase"
65 fi 84 fi
66 85
67 # Delete ez_setup files to prevent packages from installing 86 # Delete ez_setup files to prevent packages from installing
68 # setuptools on their own. 87 # Setuptools on their own.
69 local ez_setup_py_existence 88 local ez_setup_existence="0"
70 [[ -f ez_setup.py ]] && ez_setup_py_existence="1" 89 [[ -d ez_setup || -f ez_setup.py ]] && ez_setup_existence="1"
71 rm -fr ez_setup* 90 rm -fr ez_setup*
72 if [[ "${ez_setup_py_existence}" == "1" ]]; then 91 if [[ "${ez_setup_existence}" == "1" ]]; then
73 echo "def use_setuptools(*args, **kwargs): pass" > ez_setup.py 92 echo "def use_setuptools(*args, **kwargs): pass" > ez_setup.py
93 fi
94
95 # Delete distribute_setup files to prevent packages from installing
96 # Distribute on their own.
97 local distribute_setup_existence="0"
98 [[ -d distribute_setup || -f distribute_setup.py ]] && distribute_setup_existence="1"
99 rm -fr distribute_setup*
100 if [[ "${distribute_setup_existence}" == "1" ]]; then
101 echo "def use_setuptools(*args, **kwargs): pass" > distribute_setup.py
74 fi 102 fi
75 103
76 if [[ -n "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]]; then 104 if [[ -n "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]]; then
77 python_copy_sources 105 python_copy_sources
78 fi 106 fi
79} 107}
80 108
81# @FUNCTION: distutils_src_compile 109# @FUNCTION: distutils_src_compile
82# @DESCRIPTION: 110# @DESCRIPTION:
83# The distutils src_compile function, this function is exported 111# The distutils src_compile function, this function is exported.
112# In newer EAPIs this function calls distutils_src_compile_pre_hook() and
113# distutils_src_compile_post_hook(), if they are defined.
84distutils_src_compile() { 114distutils_src_compile() {
85 if [[ "${EBUILD_PHASE}" != "compile" ]]; then 115 if [[ "${EBUILD_PHASE}" != "compile" ]]; then
86 die "${FUNCNAME}() can be used only in src_compile() phase" 116 die "${FUNCNAME}() can be used only in src_compile() phase"
87 fi 117 fi
88 118
89 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then 119 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
90 if [[ -n "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]]; then 120 if [[ -n "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]]; then
91 building() { 121 building() {
122 _distutils_hook pre
123
92 echo "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" 124 echo "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@"
93 "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" 125 "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || return "$?"
126
127 _distutils_hook post
94 } 128 }
95 python_execute_function -s building "$@" 129 python_execute_function -s building "$@"
96 else 130 else
97 building() { 131 building() {
132 _distutils_hook pre
133
98 echo "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build -b "build-${PYTHON_ABI}" "$@" 134 echo "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build -b "build-${PYTHON_ABI}" "$@"
99 "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build -b "build-${PYTHON_ABI}" "$@" 135 "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build -b "build-${PYTHON_ABI}" "$@" || return "$?"
136
137 _distutils_hook post
100 } 138 }
101 python_execute_function building "$@" 139 python_execute_function building "$@"
102 fi 140 fi
103 else 141 else
142 python_version
104 echo ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" 143 echo "$(PYTHON "${PYVER}")" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@"
105 ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed" 144 "$(PYTHON "${PYVER}")" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed"
106 fi 145 fi
107} 146}
108 147
109# @FUNCTION: distutils_src_install 148# @FUNCTION: distutils_src_install
110# @DESCRIPTION: 149# @DESCRIPTION:
111# The distutils src_install function, this function is exported. 150# The distutils src_install function, this function is exported.
151# In newer EAPIs this function calls distutils_src_install_pre_hook() and
152# distutils_src_install_post_hook(), if they are defined.
112# It also installs the "standard docs" (CHANGELOG, Change*, KNOWN_BUGS, MAINTAINERS, 153# It also installs the "standard docs" (CHANGELOG, Change*, KNOWN_BUGS, MAINTAINERS,
113# PKG-INFO, CONTRIBUTORS, TODO, NEWS, MANIFEST*, README*, and AUTHORS) 154# PKG-INFO, CONTRIBUTORS, TODO, NEWS, MANIFEST*, README*, and AUTHORS)
114distutils_src_install() { 155distutils_src_install() {
115 if [[ "${EBUILD_PHASE}" != "install" ]]; then 156 if [[ "${EBUILD_PHASE}" != "install" ]]; then
116 die "${FUNCNAME}() can be used only in src_install() phase" 157 die "${FUNCNAME}() can be used only in src_install() phase"
120 161
121 # Mark the package to be rebuilt after a python upgrade. 162 # Mark the package to be rebuilt after a python upgrade.
122 python_need_rebuild 163 python_need_rebuild
123 164
124 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then 165 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
166 if [[ -z "${DISTUTILS_DISABLE_VERSIONING_OF_PYTHON_SCRIPTS}" && "${BASH_VERSINFO[0]}" -ge "4" ]]; then
167 declare -A wrapper_scripts=()
168
169 rename_scripts_with_versioned_shebangs() {
170 if [[ -d "${D}usr/bin" ]]; then
171 cd "${D}usr/bin"
172
173 local file
174 for file in *; do
175 if [[ -f "${file}" && ! "${file}" =~ [[:digit:]]+\.[[:digit:]]+$ && "$(head -n1 "${file}")" =~ ^'#!'.*python[[:digit:]]+\.[[:digit:]]+ ]]; then
176 mv "${file}" "${file}-${PYTHON_ABI}" || die "Renaming of '${file}' failed"
177 wrapper_scripts+=(["${D}usr/bin/${file}"]=)
178 fi
179 done
180 fi
181 }
182 fi
183
125 if [[ -n "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]]; then 184 if [[ -n "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]]; then
126 installation() { 185 installation() {
186 _distutils_hook pre
187
127 # need this for python-2.5 + setuptools in cases where 188 # need this for python-2.5 + setuptools in cases where
128 # a package uses distutils but does not install anything 189 # a package uses distutils but does not install anything
129 # in site-packages. (eg. dev-java/java-config-2.x) 190 # in site-packages. (eg. dev-java/java-config-2.x)
130 # - liquidx (14/08/2006) 191 # - liquidx (14/08/2006)
131 pylibdir="$("$(PYTHON)" -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')" 192 pylibdir="$("$(PYTHON)" -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')"
132 [[ -n "${pylibdir}" ]] && dodir "${pylibdir}" 193 [[ -n "${pylibdir}" ]] && dodir "${pylibdir}"
133 194
134 echo "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" 195 echo "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@"
135 "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" 196 "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || return "$?"
197
198 if [[ -z "${DISTUTILS_DISABLE_VERSIONING_OF_PYTHON_SCRIPTS}" && "${BASH_VERSINFO[0]}" -ge "4" ]]; then
199 rename_scripts_with_versioned_shebangs
200 fi
201
202 _distutils_hook post
136 } 203 }
137 python_execute_function -s installation "$@" 204 python_execute_function -s installation "$@"
138 else 205 else
139 installation() { 206 installation() {
207 _distutils_hook pre
208
140 # need this for python-2.5 + setuptools in cases where 209 # need this for python-2.5 + setuptools in cases where
141 # a package uses distutils but does not install anything 210 # a package uses distutils but does not install anything
142 # in site-packages. (eg. dev-java/java-config-2.x) 211 # in site-packages. (eg. dev-java/java-config-2.x)
143 # - liquidx (14/08/2006) 212 # - liquidx (14/08/2006)
144 pylibdir="$("$(PYTHON)" -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')" 213 pylibdir="$("$(PYTHON)" -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')"
145 [[ -n "${pylibdir}" ]] && dodir "${pylibdir}" 214 [[ -n "${pylibdir}" ]] && dodir "${pylibdir}"
146 215
147 echo "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build -b "build-${PYTHON_ABI}" install --root="${D}" --no-compile "$@" 216 echo "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build -b "build-${PYTHON_ABI}" install --root="${D}" --no-compile "$@"
148 "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build -b "build-${PYTHON_ABI}" install --root="${D}" --no-compile "$@" 217 "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build -b "build-${PYTHON_ABI}" install --root="${D}" --no-compile "$@" || return "$?"
218
219 if [[ -z "${DISTUTILS_DISABLE_VERSIONING_OF_PYTHON_SCRIPTS}" && "${BASH_VERSINFO[0]}" -ge "4" ]]; then
220 rename_scripts_with_versioned_shebangs
221 fi
222
223 _distutils_hook post
149 } 224 }
150 python_execute_function installation "$@" 225 python_execute_function installation "$@"
151 fi 226 fi
227
228 if [[ -z "${DISTUTILS_DISABLE_VERSIONING_OF_PYTHON_SCRIPTS}" && "${#wrapper_scripts[@]}" -ne "0" && "${BASH_VERSINFO[0]}" -ge "4" ]]; then
229 python_generate_wrapper_scripts "${!wrapper_scripts[@]}"
230 fi
231 unset wrapper_scripts
152 else 232 else
153 # need this for python-2.5 + setuptools in cases where 233 # need this for python-2.5 + setuptools in cases where
154 # a package uses distutils but does not install anything 234 # a package uses distutils but does not install anything
155 # in site-packages. (eg. dev-java/java-config-2.x) 235 # in site-packages. (eg. dev-java/java-config-2.x)
156 # - liquidx (14/08/2006) 236 # - liquidx (14/08/2006)
157 pylibdir="$(${python} -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')" 237 pylibdir="$("$(PYTHON "${PYVER}")" -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')"
158 [[ -n "${pylibdir}" ]] && dodir "${pylibdir}" 238 [[ -n "${pylibdir}" ]] && dodir "${pylibdir}"
159 239
160 echo ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" 240 echo "$(PYTHON "${PYVER}")" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@"
161 ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || die "Installation failed" 241 "$(PYTHON "${PYVER}")" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || die "Installation failed"
242 fi
243
244 if [[ -e "${D}usr/local" ]]; then
245 die "Illegal installation into /usr/local"
162 fi 246 fi
163 247
164 local default_docs 248 local default_docs
165 default_docs="AUTHORS Change* CHANGELOG CONTRIBUTORS KNOWN_BUGS MAINTAINERS MANIFEST* NEWS PKG-INFO README* TODO" 249 default_docs="AUTHORS Change* CHANGELOG CONTRIBUTORS KNOWN_BUGS MAINTAINERS MANIFEST* NEWS PKG-INFO README* TODO"
166 250
172 if [[ -n "${DOCS}" ]]; then 256 if [[ -n "${DOCS}" ]]; then
173 dodoc ${DOCS} || die "dodoc failed" 257 dodoc ${DOCS} || die "dodoc failed"
174 fi 258 fi
175} 259}
176 260
177# @FUNCTION: distutils_pkg_postrm 261# @FUNCTION: distutils_pkg_postinst
178# @DESCRIPTION: 262# @DESCRIPTION:
179# Generic pyc/pyo cleanup script. This function is exported. 263# This is a generic optimization, you should override it if your package
264# installs modules in another directory. This function is exported.
180distutils_pkg_postrm() { 265distutils_pkg_postinst() {
181 if [[ "${EBUILD_PHASE}" != "postrm" ]]; then 266 if [[ "${EBUILD_PHASE}" != "postinst" ]]; then
182 die "${FUNCNAME}() can be used only in pkg_postrm() phase" 267 die "${FUNCNAME}() can be used only in pkg_postinst() phase"
183 fi 268 fi
184 269
185 local pylibdir pymod 270 local pylibdir pymod
186 if [[ -z "${PYTHON_MODNAME}" ]]; then 271 if [[ -z "${PYTHON_MODNAME}" ]]; then
187 for pylibdir in "${ROOT}"/usr/$(get_libdir)/python*; do 272 for pylibdir in "${ROOT}"/usr/$(get_libdir)/python*; do
189 PYTHON_MODNAME="${PN}" 274 PYTHON_MODNAME="${PN}"
190 fi 275 fi
191 done 276 done
192 fi 277 fi
193 278
194 if [[ -n "${PYTHON_MODNAME}" ]]; then 279 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
280 python_mod_optimize ${PYTHON_MODNAME}
281 else
195 for pymod in ${PYTHON_MODNAME}; do 282 for pymod in ${PYTHON_MODNAME}; do
196 for pylibdir in "${ROOT}"/usr/$(get_libdir)/python*; do 283 python_mod_optimize "$(python_get_sitedir)/${pymod}"
197 if [[ -d "${pylibdir}/site-packages/${pymod}" ]]; then
198 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
199 python_mod_cleanup "${pymod}"
200 else
201 python_mod_cleanup "${pylibdir#${ROOT}}/site-packages/${pymod}"
202 fi
203 fi
204 done
205 done 284 done
206 else
207 python_mod_cleanup
208 fi 285 fi
209} 286}
210 287
211# @FUNCTION: distutils_pkg_postinst 288# @FUNCTION: distutils_pkg_postrm
212# @DESCRIPTION: 289# @DESCRIPTION:
213# This is a generic optimization, you should override it if your package 290# Generic pyc/pyo cleanup script. This function is exported.
214# installs modules in another directory. This function is exported.
215distutils_pkg_postinst() { 291distutils_pkg_postrm() {
216 if [[ "${EBUILD_PHASE}" != "postinst" ]]; then 292 if [[ "${EBUILD_PHASE}" != "postrm" ]]; then
217 die "${FUNCNAME}() can be used only in pkg_postinst() phase" 293 die "${FUNCNAME}() can be used only in pkg_postrm() phase"
218 fi 294 fi
219 295
220 local pylibdir pymod 296 local pylibdir pymod
221 if [[ -z "${PYTHON_MODNAME}" ]]; then 297 if [[ -z "${PYTHON_MODNAME}" ]]; then
222 for pylibdir in "${ROOT}"/usr/$(get_libdir)/python*; do 298 for pylibdir in "${ROOT}"/usr/$(get_libdir)/python*; do
224 PYTHON_MODNAME="${PN}" 300 PYTHON_MODNAME="${PN}"
225 fi 301 fi
226 done 302 done
227 fi 303 fi
228 304
305 if [[ -n "${PYTHON_MODNAME}" ]]; then
229 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then 306 if ! has "${EAPI:-0}" 0 1 2 || [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
307 python_mod_cleanup ${PYTHON_MODNAME}
308 else
230 for pymod in ${PYTHON_MODNAME}; do 309 for pymod in ${PYTHON_MODNAME}; do
231 python_mod_optimize "${pymod}" 310 for pylibdir in "${ROOT}"/usr/$(get_libdir)/python*; do
311 if [[ -d "${pylibdir}/site-packages/${pymod}" ]]; then
312 python_mod_cleanup "${pylibdir#${ROOT}}/site-packages/${pymod}"
313 fi
314 done
232 done 315 done
316 fi
233 else 317 else
234 python_version 318 python_mod_cleanup
235 for pymod in ${PYTHON_MODNAME}; do
236 python_mod_optimize "/usr/$(get_libdir)/python${PYVER}/site-packages/${pymod}"
237 done
238 fi 319 fi
239} 320}
240 321
241# @FUNCTION: distutils_python_version 322# @FUNCTION: distutils_python_version
242# @DESCRIPTION: 323# @DESCRIPTION:
243# Calls python_version, so that you can use something like 324# Calls python_version, so that you can use something like
244# e.g. insinto ${ROOT}/usr/include/python${PYVER} 325# e.g. insinto ${ROOT}/usr/include/python${PYVER}
245distutils_python_version() { 326distutils_python_version() {
327 if ! has "${EAPI:-0}" 0 1 2; then
328 die "${FUNCNAME}() cannot be used in this EAPI"
329 fi
330
246 python_version 331 python_version
247} 332}
248 333
249# @FUNCTION: distutils_python_tkinter 334# @FUNCTION: distutils_python_tkinter
250# @DESCRIPTION: 335# @DESCRIPTION:
251# Checks for if tkinter support is compiled into python 336# Checks for if tkinter support is compiled into python
252distutils_python_tkinter() { 337distutils_python_tkinter() {
338 if ! has "${EAPI:-0}" 0 1 2; then
339 die "${FUNCNAME}() cannot be used in this EAPI"
340 fi
341
253 python_tkinter_exists 342 python_tkinter_exists
254} 343}

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.68

  ViewVC Help
Powered by ViewVC 1.1.20