Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/
Date: Tue, 06 Sep 2022 20:46:42
Message-Id: 1662496767.27e1eddf1256b798aabf4f871b6dff58af7a9d46.mgorny@gentoo
1 commit: 27e1eddf1256b798aabf4f871b6dff58af7a9d46
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 6 20:39:27 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 6 20:39:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27e1eddf
7
8 dev-lang/python: Bump 3.9.14
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-lang/python/Manifest | 3 +
13 dev-lang/python/python-3.9.14.ebuild | 402 +++++++++++++++++++++++++++++++++++
14 2 files changed, 405 insertions(+)
15
16 diff --git a/dev-lang/python/Manifest b/dev-lang/python/Manifest
17 index b01dec30e4ec..b44e9aec5f9b 100644
18 --- a/dev-lang/python/Manifest
19 +++ b/dev-lang/python/Manifest
20 @@ -10,6 +10,8 @@ DIST Python-3.8.13.tar.xz 19023016 BLAKE2B d3cb8624496e56d93d34f2aa5082746869a99
21 DIST Python-3.8.13.tar.xz.asc 833 BLAKE2B 918894777e1a783f2a7c7958a808610631cb7a6039df84675158e8d2fd66782f29921d44ab9b4625c4ca3821852e0d0e0005163b086c7d0c3d617e3a76cb7033 SHA512 6683c4ae6cf20a97a29165f96b9f5dd09d618892583650d803aa677240695968dfe344294fc33db68fd4669c82021afcc29a1f6afe49915be51fae281eeeedbe
22 DIST Python-3.9.13.tar.xz 19754368 BLAKE2B 4f583f66c28b791e19cd6d79695fe9eb815fd333542be22aec8bd73d1f4d3f17f2c4e9de198e7b16c1ca6362a613a8a02fb965c7dc7db3e510fd31de15ba2d19 SHA512 e9664e7f908092df11236b22465d217531d6f0378e88d889108d19fe77f28f46ffb629b8733f84b41409e255367321893a2b1bd64518930d9d8cae5d1b774d23
23 DIST Python-3.9.13.tar.xz.asc 833 BLAKE2B db01c01be9d56cd15f9ab4a9e2cfa800faf4ebecb92b01c133865d3b3134bc910258a33b766306c3d01f98e35bbf9c03c7cba697760b7095999cbd63ed6c276c SHA512 9367afe8ec32195adbb64fa32eb9e3881cfdbbb38efcb5e0804a15486232aecbc81ed20a8ffed652f06a881744f3efd2c2df3cc652d70671c94d6668a17a391e
24 +DIST Python-3.9.14.tar.xz 19750176 BLAKE2B 0f6b5177fc3572f40d14ddfca4ee37e7839b996826b5c929551a6d152cd2707de6312a8b0cd05dba62c98fd309b00ece07a750cca88803de2a18dd4a09238ae3 SHA512 691a7814cf6c7bee96d8dbb7c5c85cb11f2e999101e20491b99435cdec07c3bbd5ce43ad3d9c64f695383b79197884caa1965c4346e4525e23b09c686271e4ab
25 +DIST Python-3.9.14.tar.xz.asc 833 BLAKE2B 16baf31f01c2e008e77379231355bb5e80bdf394219fa797f89881d408243b81cd0744a208f46675e2c4fa7f524f1eb456ca1bf10cf6b9bcc8c7eaa46b6b621c SHA512 7cffff00ecc94d32a61e763b4ebd73caf83994e3a24b682d45453f34631e4feabcffbaae5e511952656ab6e64945bc2a3d1fb440f788352f262ffa00ec3d2203
26 DIST python-gentoo-patches-2.7.18_p15.tar.xz 34956 BLAKE2B d173f276dd9c0ce31004dcc55a0d18e9ce25a47683c2df3c4dd62e967dfbbb35be59a2f08cf20f30a19475a8a2344dd95b17400eafa88b5fdbe9270a12ccbf32 SHA512 d9386808265f978808e5c0ffd384cefe54fb0e05aeccfd394167d5227d9cd66e25c8e93c54914762b2cfc3c2dd851b26a7a84d62634c6aa8a0798aacbb7ac25f
27 DIST python-gentoo-patches-3.10.6_p2.tar.xz 12040 BLAKE2B 75c93fab19137a966b3775308bc20142f4d3648bbb9364e82c4eaffae93beda54011192881c52b85d2e2493a06cfe2a90f50675609908c3d5ebdb0103fe41644 SHA512 7e451a8a18a62592c2cd7b2db71065b77256960f43e172a0d7856b22b69138dcb1552f53b39bec14585a761cfe729c81613551c1b616fe1ec8d2b59856b11453
28 DIST python-gentoo-patches-3.10.6_p3.tar.xz 26712 BLAKE2B 701a7a4da1a09f71dee8fdf924a45e030b8ae93e469a2789b28b904d2fd6b011589fb940eb0c262e8b19005af523a2f66075d053fb60892d6ebd473159fce718 SHA512 ed43ba18735ddf72c434bfe905894d156a144a77f9fb8266378d384e840b376c6220859d8d1af83f304293368bf1dd45881316c1797ba25d618a064daaacab17
29 @@ -24,3 +26,4 @@ DIST python-gentoo-patches-3.8.13_p8.tar.xz 43204 BLAKE2B 6fb162bfcd2ab8c1fb4208
30 DIST python-gentoo-patches-3.9.13_p4.tar.xz 22072 BLAKE2B a0e084eff35d075d2255b139d0db114d282cb6c9c0c2ea51a8ecb7f5f1dc8096d6578ae5f804b7583a2b7842152b5723ad802ca816d46813c40aaa756118afc8 SHA512 cdf8d43fd5263c4956be234f36c0767215ab2495705d4f2a060b32ecbfbe159e618e31693b0538a1b970f7b27ebe4953063f585930d074dcaf59f2f61486e6b6
31 DIST python-gentoo-patches-3.9.13_p5.tar.xz 35660 BLAKE2B be3fe3a4db5e94a06c6bcb36eee71fd7e33cf27a4f3a259e5d0bd332b4765e77d5753247ddf5bbc3cbf10647f55e1897c943a7149afc76a9649d634fbfaff682 SHA512 7d6f1d215df0e50b1b4837f62c160d3262c6d9a29dad1a3f82590f5f84245defcd9b3de500ec78f01a3308275647b7a5e72a16c7425aec1edb841ba079100e1b
32 DIST python-gentoo-patches-3.9.13_p6.tar.xz 37508 BLAKE2B 6d55aec9ae139cbe6d35b84335174d5fba5784bf52eb665e2d3a27693a2abb843bce1f190c92bfd173359c3782cae06a6b3520932b08aec678332928c5a27277 SHA512 1b1dec45d959849bf72b0646329e8cf74301e0f5373d6e2dbefb63d60fdddbe9fc33abda7d2312af8c52feadf3bacd04b627626d876acecc8984d3192a2d029d
33 +DIST python-gentoo-patches-3.9.14.tar.xz 20208 BLAKE2B 964f1eca6423247bbe862de36ea6d3a337acd70405d5f046493907da3519bad99f6ab9065b2d8af1ce31bbad4183cf95c285f1040d55ce1b5dfca986fc2c849a SHA512 271ccfdc065fe6ef26621d79eb9e758264c53aad2b74d1d50bdb0bf64462389019503a3383c8d5b044231e9c3e2019d7f1240b27ca7fb9502a0beb728161b9bb
34
35 diff --git a/dev-lang/python/python-3.9.14.ebuild b/dev-lang/python/python-3.9.14.ebuild
36 new file mode 100644
37 index 000000000000..57aa423c9b08
38 --- /dev/null
39 +++ b/dev-lang/python/python-3.9.14.ebuild
40 @@ -0,0 +1,402 @@
41 +# Copyright 1999-2022 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI="7"
45 +WANT_LIBTOOL="none"
46 +
47 +inherit autotools check-reqs flag-o-matic multiprocessing pax-utils
48 +inherit python-utils-r1 toolchain-funcs verify-sig
49 +
50 +MY_PV=${PV/_rc/rc}
51 +MY_P="Python-${MY_PV%_p*}"
52 +PYVER=$(ver_cut 1-2)
53 +PATCHSET="python-gentoo-patches-${MY_PV}"
54 +
55 +DESCRIPTION="An interpreted, interactive, object-oriented programming language"
56 +HOMEPAGE="
57 + https://www.python.org/
58 + https://github.com/python/cpython/
59 +"
60 +SRC_URI="
61 + https://www.python.org/ftp/python/${PV%%_*}/${MY_P}.tar.xz
62 + https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz
63 + verify-sig? (
64 + https://www.python.org/ftp/python/${PV%%_*}/${MY_P}.tar.xz.asc
65 + )
66 +"
67 +S="${WORKDIR}/${MY_P}"
68 +
69 +LICENSE="PSF-2"
70 +SLOT="${PYVER}"
71 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
72 +IUSE="
73 + bluetooth build +ensurepip examples gdbm hardened lto +ncurses pgo
74 + +readline +sqlite +ssl test tk +xml
75 +"
76 +RESTRICT="!test? ( test )"
77 +
78 +# Do not add a dependency on dev-lang/python to this ebuild.
79 +# If you need to apply a patch which requires python for bootstrapping, please
80 +# run the bootstrap code on your dev box and include the results in the
81 +# patchset. See bug 447752.
82 +
83 +RDEPEND="
84 + app-arch/bzip2:=
85 + app-arch/xz-utils:=
86 + dev-lang/python-exec[python_targets_python3_9(-)]
87 + dev-libs/libffi:=
88 + sys-apps/util-linux:=
89 + >=sys-libs/zlib-1.1.3:=
90 + virtual/libcrypt:=
91 + virtual/libintl
92 + ensurepip? ( dev-python/ensurepip-wheels )
93 + gdbm? ( sys-libs/gdbm:=[berkdb] )
94 + ncurses? ( >=sys-libs/ncurses-5.2:= )
95 + readline? ( >=sys-libs/readline-4.1:= )
96 + sqlite? ( >=dev-db/sqlite-3.3.8:3= )
97 + ssl? ( >=dev-libs/openssl-1.1.1:= )
98 + tk? (
99 + >=dev-lang/tcl-8.0:=
100 + >=dev-lang/tk-8.0:=
101 + dev-tcltk/blt:=
102 + dev-tcltk/tix
103 + )
104 + xml? ( >=dev-libs/expat-2.1:= )
105 +"
106 +# bluetooth requires headers from bluez
107 +DEPEND="
108 + ${RDEPEND}
109 + bluetooth? ( net-wireless/bluez )
110 + test? ( app-arch/xz-utils[extra-filters(+)] )
111 +"
112 +# autoconf-archive needed to eautoreconf
113 +BDEPEND="
114 + sys-devel/autoconf-archive
115 + virtual/awk
116 + virtual/pkgconfig
117 + verify-sig? ( sec-keys/openpgp-keys-python )
118 +"
119 +RDEPEND+="
120 + !build? ( app-misc/mime-types )
121 +"
122 +
123 +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/python.org.asc
124 +
125 +# large file tests involve a 2.5G file being copied (duplicated)
126 +CHECKREQS_DISK_BUILD=5500M
127 +
128 +QA_PKGCONFIG_VERSION=${PYVER}
129 +
130 +pkg_pretend() {
131 + use test && check-reqs_pkg_pretend
132 +}
133 +
134 +pkg_setup() {
135 + use test && check-reqs_pkg_setup
136 +}
137 +
138 +src_unpack() {
139 + if use verify-sig; then
140 + verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.xz{,.asc}
141 + fi
142 + default
143 +}
144 +
145 +src_prepare() {
146 + # Ensure that internal copies of expat and libffi are not used.
147 + rm -r Modules/expat || die
148 + rm -r Modules/_ctypes/libffi* || die
149 +
150 + local PATCHES=(
151 + "${WORKDIR}/${PATCHSET}"
152 + )
153 +
154 + default
155 +
156 + # https://bugs.gentoo.org/850151
157 + sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" setup.py || die
158 +
159 + # force the correct number of jobs
160 + # https://bugs.gentoo.org/737660
161 + local jobs=$(makeopts_jobs)
162 + sed -i -e "s:-j0:-j${jobs}:" Makefile.pre.in || die
163 + sed -i -e "/self\.parallel/s:True:${jobs}:" setup.py || die
164 +
165 + eautoreconf
166 +}
167 +
168 +src_configure() {
169 + # disable automagic bluetooth headers detection
170 + if ! use bluetooth; then
171 + local -x ac_cv_header_bluetooth_bluetooth_h=no
172 + fi
173 + local disable
174 + use gdbm || disable+=" gdbm"
175 + use ncurses || disable+=" _curses _curses_panel"
176 + use readline || disable+=" readline"
177 + use sqlite || disable+=" _sqlite3"
178 + use ssl || export PYTHON_DISABLE_SSL="1"
179 + use tk || disable+=" _tkinter"
180 + use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
181 + export PYTHON_DISABLE_MODULES="${disable}"
182 +
183 + if ! use xml; then
184 + ewarn "You have configured Python without XML support."
185 + ewarn "This is NOT a recommended configuration as you"
186 + ewarn "may face problems parsing any XML documents."
187 + fi
188 +
189 + if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
190 + einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
191 + fi
192 +
193 + append-flags -fwrapv
194 + filter-flags -malign-double
195 +
196 + # https://bugs.gentoo.org/700012
197 + if is-flagq -flto || is-flagq '-flto=*'; then
198 + append-cflags $(test-flags-CC -ffat-lto-objects)
199 + fi
200 +
201 + # Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
202 + # PKG_CONFIG needed for cross.
203 + tc-export CXX PKG_CONFIG
204 +
205 + # Fix implicit declarations on cross and prefix builds. Bug #674070.
206 + if use ncurses; then
207 + append-cppflags -I"${ESYSROOT}"/usr/include/ncursesw
208 + fi
209 +
210 + local dbmliborder=
211 + if use gdbm; then
212 + dbmliborder+="${dbmliborder:+:}gdbm"
213 + fi
214 +
215 + if use pgo; then
216 + local profile_task_flags=(
217 + -m test
218 + "-j$(makeopts_jobs)"
219 + --pgo-extended
220 + -x test_gdb
221 + -u-network
222 +
223 + # All of these seem to occasionally hang for PGO inconsistently
224 + # They'll even hang here but be fine in src_test sometimes.
225 + # bug #828535 (and related: bug #788022)
226 + -x test_asyncio
227 + -x test_httpservers
228 + -x test_logging
229 + -x test_multiprocessing_fork
230 + -x test_socket
231 + -x test_xmlrpc
232 + )
233 +
234 + if has_version "app-arch/rpm" ; then
235 + # Avoid sandbox failure (attempts to write to /var/lib/rpm)
236 + profile_task_flags+=(
237 + -x test_distutils
238 + )
239 + fi
240 + local -x PROFILE_TASK="${profile_task_flags[*]}"
241 + fi
242 +
243 + local myeconfargs=(
244 + # glibc-2.30 removes it; since we can't cleanly force-rebuild
245 + # Python on glibc upgrade, remove it proactively to give
246 + # a chance for users rebuilding python before glibc
247 + ac_cv_header_stropts_h=no
248 +
249 + --enable-shared
250 + --enable-ipv6
251 + --infodir='${prefix}/share/info'
252 + --mandir='${prefix}/share/man'
253 + --with-computed-gotos
254 + --with-dbmliborder="${dbmliborder}"
255 + --with-libc=
256 + --enable-loadable-sqlite-extensions
257 + --without-ensurepip
258 + --with-system-expat
259 + --with-system-ffi
260 + --with-wheel-pkg-dir="${EPREFIX}"/usr/lib/python/ensurepip
261 +
262 + $(use_with lto)
263 + $(use_enable pgo optimizations)
264 + )
265 +
266 + # disable implicit optimization/debugging flags
267 + local -x OPT=
268 + # pass system CFLAGS & LDFLAGS as _NODIST, otherwise they'll get
269 + # propagated to sysconfig for built extensions
270 + local -x CFLAGS_NODIST=${CFLAGS}
271 + local -x LDFLAGS_NODIST=${LDFLAGS}
272 + local -x CFLAGS= LDFLAGS=
273 +
274 + econf "${myeconfargs[@]}"
275 +
276 + if grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
277 + eerror "configure has detected that the sem_open function is broken."
278 + eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
279 + die "Broken sem_open function (bug 496328)"
280 + fi
281 +
282 + # install epython.py as part of stdlib
283 + echo "EPYTHON='python${PYVER}'" > Lib/epython.py || die
284 +}
285 +
286 +src_compile() {
287 + # Ensure sed works as expected
288 + # https://bugs.gentoo.org/594768
289 + local -x LC_ALL=C
290 + # Prevent using distutils bundled by setuptools.
291 + # https://bugs.gentoo.org/823728
292 + export SETUPTOOLS_USE_DISTUTILS=stdlib
293 +
294 + # Save PYTHONDONTWRITEBYTECODE so that 'has_version' doesn't
295 + # end up writing bytecode & violating sandbox.
296 + # bug #831897
297 + local -x _PYTHONDONTWRITEBYTECODE=${PYTHONDONTWRITEBYTECODE}
298 +
299 + if use pgo ; then
300 + # bug 660358
301 + local -x COLUMNS=80
302 + local -x PYTHONDONTWRITEBYTECODE=
303 +
304 + addpredict /usr/lib/python3.9/site-packages
305 + fi
306 +
307 + # also need to clear the flags explicitly here or they end up
308 + # in _sysconfigdata*
309 + emake CPPFLAGS= CFLAGS= LDFLAGS=
310 +
311 + # Restore saved value from above.
312 + local -x PYTHONDONTWRITEBYTECODE=${_PYTHONDONTWRITEBYTECODE}
313 +
314 + # Work around bug 329499. See also bug 413751 and 457194.
315 + if has_version dev-libs/libffi[pax-kernel]; then
316 + pax-mark E python
317 + else
318 + pax-mark m python
319 + fi
320 +}
321 +
322 +src_test() {
323 + # Tests will not work when cross compiling.
324 + if tc-is-cross-compiler; then
325 + elog "Disabling tests due to crosscompiling."
326 + return
327 + fi
328 +
329 + local test_opts=(
330 + -u-network
331 + -j "$(makeopts_jobs)"
332 +
333 + # fails
334 + -x test_gdb
335 + )
336 +
337 + if use sparc ; then
338 + # bug #788022
339 + test_opts+=(
340 + -x test_multiprocessing_fork
341 + -x test_multiprocessing_forkserver
342 + )
343 + fi
344 +
345 + # bug 660358
346 + local -x COLUMNS=80
347 + local -x PYTHONDONTWRITEBYTECODE=
348 +
349 + emake test EXTRATESTOPTS="${test_opts[*]}" \
350 + CPPFLAGS= CFLAGS= LDFLAGS= < /dev/tty || die "emake test failed"
351 +}
352 +
353 +src_install() {
354 + local libdir=${ED}/usr/lib/python${PYVER}
355 +
356 + emake DESTDIR="${D}" altinstall
357 +
358 + # Remove static library
359 + rm "${ED}"/usr/$(get_libdir)/libpython*.a || die
360 +
361 + # Fix collisions between different slots of Python.
362 + rm "${ED}/usr/$(get_libdir)/libpython3.so" || die
363 +
364 + # Cheap hack to get version with ABIFLAGS
365 + local abiver=$(cd "${ED}/usr/include"; echo python*)
366 + if [[ ${abiver} != python${PYVER} ]]; then
367 + # Replace python3.X with a symlink to python3.Xm
368 + rm "${ED}/usr/bin/python${PYVER}" || die
369 + dosym "${abiver}" "/usr/bin/python${PYVER}"
370 + # Create python3.X-config symlink
371 + dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
372 + # Create python-3.5m.pc symlink
373 + dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc"
374 + fi
375 +
376 + # python seems to get rebuilt in src_install (bug 569908)
377 + # Work around it for now.
378 + if has_version dev-libs/libffi[pax-kernel]; then
379 + pax-mark E "${ED}/usr/bin/${abiver}"
380 + else
381 + pax-mark m "${ED}/usr/bin/${abiver}"
382 + fi
383 +
384 + rm -r "${libdir}"/ensurepip/_bundled || die
385 + if ! use ensurepip; then
386 + rm -r "${libdir}"/ensurepip || die
387 + fi
388 + if ! use sqlite; then
389 + rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
390 + fi
391 + if ! use tk; then
392 + rm -r "${ED}/usr/bin/idle${PYVER}" || die
393 + rm -r "${libdir}/"{idlelib,tkinter,test/test_tk*} || die
394 + fi
395 +
396 + dodoc Misc/{ACKS,HISTORY,NEWS}
397 +
398 + if use examples; then
399 + docinto examples
400 + find Tools -name __pycache__ -exec rm -fr {} + || die
401 + dodoc -r Tools
402 + fi
403 + insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
404 + local libname=$(
405 + printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' |
406 + emake --no-print-directory -s -f - 2>/dev/null
407 + )
408 + newins Tools/gdb/libpython.py "${libname}"-gdb.py
409 +
410 + newconfd "${FILESDIR}/pydoc.conf" pydoc-${PYVER}
411 + newinitd "${FILESDIR}/pydoc.init" pydoc-${PYVER}
412 + sed \
413 + -e "s:@PYDOC_PORT_VARIABLE@:PYDOC${PYVER/./_}_PORT:" \
414 + -e "s:@PYDOC@:pydoc${PYVER}:" \
415 + -i "${ED}/etc/conf.d/pydoc-${PYVER}" \
416 + "${ED}/etc/init.d/pydoc-${PYVER}" || die "sed failed"
417 +
418 + # python-exec wrapping support
419 + local pymajor=${PYVER%.*}
420 + local EPYTHON=python${PYVER}
421 + local scriptdir=${D}$(python_get_scriptdir)
422 + mkdir -p "${scriptdir}" || die
423 + # python and pythonX
424 + ln -s "../../../bin/${abiver}" "${scriptdir}/python${pymajor}" || die
425 + ln -s "python${pymajor}" "${scriptdir}/python" || die
426 + # python-config and pythonX-config
427 + # note: we need to create a wrapper rather than symlinking it due
428 + # to some random dirname(argv[0]) magic performed by python-config
429 + cat > "${scriptdir}/python${pymajor}-config" <<-EOF || die
430 + #!/bin/sh
431 + exec "${abiver}-config" "\${@}"
432 + EOF
433 + chmod +x "${scriptdir}/python${pymajor}-config" || die
434 + ln -s "python${pymajor}-config" "${scriptdir}/python-config" || die
435 + # 2to3, pydoc
436 + ln -s "../../../bin/2to3-${PYVER}" "${scriptdir}/2to3" || die
437 + ln -s "../../../bin/pydoc${PYVER}" "${scriptdir}/pydoc" || die
438 + # idle
439 + if use tk; then
440 + ln -s "../../../bin/idle${PYVER}" "${scriptdir}/idle" || die
441 + fi
442 +}