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, 07 Sep 2021 20:50:27
Message-Id: 1631047525.d26b85ee4f4e8efef3032adfe3122ceb47658d3d.mgorny@gentoo
1 commit: d26b85ee4f4e8efef3032adfe3122ceb47658d3d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 20:45:25 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 20:45:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d26b85ee
7
8 dev-lang/python: Bump to 3.10.0rc2
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.10.0_rc2.ebuild | 346 +++++++++++++++++++++++++++++++
14 2 files changed, 349 insertions(+)
15
16 diff --git a/dev-lang/python/Manifest b/dev-lang/python/Manifest
17 index 5915d4f2b7f..09426262c1a 100644
18 --- a/dev-lang/python/Manifest
19 +++ b/dev-lang/python/Manifest
20 @@ -2,6 +2,8 @@ DIST Python-2.7.18.tar.xz 12854736 BLAKE2B 060a621c91dd8e3d321aec99d44c17aa67381
21 DIST Python-2.7.18.tar.xz.asc 833 BLAKE2B 1d98770e46171971fb99994508d238c01d2755281d2f94353314014d9e83e0ec5f0b3e3950ea1fdf5fce9ba6b8f55312355845c2a3fc4291c27ee56fe6215448 SHA512 c2a5f5a52f47dec52460ad3275758d4e5de6e7075c3def4353c988d74d563a39b42cae2d5eb24e2a23a6247cef69100f91620b11a49c2359fbf99b203c9cbda8
22 DIST Python-3.10.0rc1.tar.xz 28197832 BLAKE2B e86f26a299c33b4f0595d3b3dba17cff6e68ffcb82de61f8d8d5e425906dca3523dd06f96737006a85dba73afabc5461814f1691575e2f9679dd89e56327c9e8 SHA512 c92fab7b79a4c8125cd3e9d2ea4f03b8356ba77dc05a46b277a56c861c130e90e87c755f5e00f3d4517d50b453e34592f77e812bc1831d4bab3cc3af2110d8fd
23 DIST Python-3.10.0rc1.tar.xz.asc 833 BLAKE2B 6446ea32a7d62686e33476c328d71aeb67675863be10b3e02ffcef376868fc2027a3dd355ad22c046acbf4ff2d6cc20e7cf46215229b8b36e706b77ef993e920 SHA512 e3dcc240b9fecdfc2a90b7845b57ebbc34bda5c85c09c7dae6b5b34f3d355da674ffad28d83a8b281da97c407f11ac5fdc88da09c6cdac41ac93e6e70b5f813c
24 +DIST Python-3.10.0rc2.tar.xz 18737220 BLAKE2B bcbddfa718b66b30b85dc3afad59eb3d977bfe036564821d5016d7150a38c377bc6fb29c611dd28681b660e488f0ef3d1de21a6cd9528866a3e86e8afbf589af SHA512 8511d837e465818a7b41df4593f29179e4d420171a287deb484ab6834fe17fe6b9d49ea6ee619573c8fa02aae0bf11807b5fa5903b200e311a0ba27981ecdc04
25 +DIST Python-3.10.0rc2.tar.xz.asc 833 BLAKE2B d518871f35126be04effc213cd78b9fe641c75ffa361671f111916cff0dcf9578cb0010842afb5b25037cbff494023db8b28e7fcf0d59a53667ed59d7f4f661b SHA512 ce38167956314b27641f08fd5cad67bcf286154ff3a74a8987e9cda8b5737ed2218f0190726c7555cc5f49d76dee3d90521512e4560bfb4e91789217e36ee096
26 DIST Python-3.6.14.tar.xz 17218148 BLAKE2B efe655cb907ffa678ca135f88ba9d867e523969ad82dbc09ffb6d8d383824a4b43c525e156a3c35484a526b4b3ea755109e5ef15d17852d44e3351c307fc5e91 SHA512 15b82b7285db97cb27a6fcd57ce9e258fdf8dbdb2f00e22e4331161b8557c8244342546c4143e84c72730759e0276770396b6ca5bb7cf87310cca8e175423006
27 DIST Python-3.6.14.tar.xz.asc 833 BLAKE2B 81c79dca5728b21b8c2badcaa1242836f1cf13984bb755463cfe9e4fd96a02ebf31f1a9239759a937c6d6a04c18bfc682a82cb0ab2e5a473de153423a7248c9c SHA512 600bf504f2c0d3ce7d1e8e953b4f27a7a7c996b7b9cd70efb876178fa5424130bff5414d5ac7deb8b45103ed417fd40d830613db39750d35a0c967c8fdfea50d
28 DIST Python-3.6.15.tar.xz 17223796 BLAKE2B c139c6f93ea70ad898d5626dfa964280a14de9676f0d9d55668ad91618b1ba330874cbba8d6526a87e53b585ff34e3bf242613ca3fb17ee60f362a9676306c7d SHA512 f1894d704c91669d94ec83b5631288bf1e0c73ddcf33cea0977575f262eb672caebc8ac00e34e9b99c321c19cc9a71d6081fa957bb8e23cf5bfba50f345145ef
29 @@ -22,6 +24,7 @@ DIST python-gentoo-patches-2.7.18_p11.tar.xz 31340 BLAKE2B bdc097b971ab8ec0b60f9
30 DIST python-gentoo-patches-2.7.18_p13.tar.xz 33296 BLAKE2B 91b711458aff4f6337ee1b34aff58d7edda6725644a64c9320076a1e04c816729ed163d82333cfe4dfef379a9ad5ef50ba00abdbbfed4503b0f92c8f0b7ca683 SHA512 97f3657a4a95e8492aa710801b974a56e6dd4636e475aea45cbbe76e7ae32d00f07b05769887f05e49cb0df8584ac9499a7ce842bad77f837a7c869f9b769b07
31 DIST python-gentoo-patches-3.10.0rc1_p1.tar.xz 8496 BLAKE2B b3b771a8894e5bfeabb3bee10cf60c068dca28341784f0914bb2190f67f10007c2e4e3b18dc31ac7dd791e06314cd3f8cda6776261c6e83da380c492bbc53e89 SHA512 bb22cc121d3b915b98de32244926188dd9717054f32437822a59652be001ac3b6309cb1aba79ce158a486d33e761a31861aed56b5a7976bc83aee18174903248
32 DIST python-gentoo-patches-3.10.0rc1_p2.tar.xz 10548 BLAKE2B b0a78e3b5e45ead483391c4382c3d6046b4a03e43c1ab5fcd1569f05afc271dde6278078cec852756364663111c38f0ecedca99ef2f2bb233714406505ed8e79 SHA512 1e0129903a3756b6ab087b982269197b64028432f81592b887d8431f429f864918eaa611c7b671e303de7603fd835fb4563219fedd3ee1dbd42e843e66d4fccd
33 +DIST python-gentoo-patches-3.10.0rc2.tar.xz 8488 BLAKE2B d7c1e45e63bf5bfe5d41823ea183608f4bcb44694feb18ee6d315250f1563684ce87dec29f46c16da223b6bbd1d20e75791d347ae6ac1d4b5130ba3f08c55ca1 SHA512 c2ca3b60f33131b20037fc0f53a5ce655e9978c5fa42d0b8e2c6b56aec24f6f37d8997fa146a446e5fd72b5d2c4b017d5e4fb71318a51dbb45f5d3b0ea4ed4ad
34 DIST python-gentoo-patches-3.6.14.tar.xz 14744 BLAKE2B b9482f9d2b7ada60eff9a5672ed21556c00b473a7cfdb543dce8253fb0ff1539e635a35569478c496012ecde4eef78a257da28f7a80bff99da10249708262229 SHA512 246f83911c8e52ea83a9bf453faa0bc0ea0c29bbf3b666a938e3790c6147f71e617ff9cb27501c5f0b89172eb9e7819e3f2ef0a5bae271cc938d2c0c2b93f7ae
35 DIST python-gentoo-patches-3.6.14_p1.tar.xz 16576 BLAKE2B 902a9073e6d3e40cfba105680d9947b64a4bfa1632381bc71afbd2691350dccb36f498bf17ac7dfc8ce331dfc3fb7e3cdd539cea3f5e9db1c49210ad4d124182 SHA512 4aa354f1ca8d9bb3c30b666ef61cac8380741342102aeb9ea77cc06ae62179f595acc1c2e6321e9c2395abbc3fbc649ecc93b80443d139859924524989539992
36 DIST python-gentoo-patches-3.6.15.tar.xz 15300 BLAKE2B f49fd96f6ad1a1c94fea6b83acd229a81754b86061e243044ead4b9a9d5122a2e43b270b68722c359c084c05a566a3ad70aa46588ab7a005ee560ee118b92b8b SHA512 cc33491a33f3f1d990cf494d53b91b74db761142e8aebe1bd4b128ef10a268ff945e5ba08daad39cee095612a8e52265d6988873ecf9c073377cbbc10735aa39
37
38 diff --git a/dev-lang/python/python-3.10.0_rc2.ebuild b/dev-lang/python/python-3.10.0_rc2.ebuild
39 new file mode 100644
40 index 00000000000..871bbbb0eba
41 --- /dev/null
42 +++ b/dev-lang/python/python-3.10.0_rc2.ebuild
43 @@ -0,0 +1,346 @@
44 +# Copyright 1999-2021 Gentoo Authors
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI="7"
48 +WANT_LIBTOOL="none"
49 +
50 +inherit autotools check-reqs flag-o-matic multiprocessing pax-utils \
51 + python-utils-r1 toolchain-funcs verify-sig
52 +
53 +MY_PV=${PV/_rc/rc}
54 +MY_P="Python-${MY_PV%_p*}"
55 +PYVER=$(ver_cut 1-2)
56 +PATCHSET="python-gentoo-patches-${MY_PV}"
57 +
58 +DESCRIPTION="An interpreted, interactive, object-oriented programming language"
59 +HOMEPAGE="https://www.python.org/"
60 +SRC_URI="https://www.python.org/ftp/python/${PV%%_*}/${MY_P}.tar.xz
61 + https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz
62 + verify-sig? (
63 + https://www.python.org/ftp/python/${PV%%_*}/${MY_P}.tar.xz.asc
64 + )"
65 +S="${WORKDIR}/${MY_P}"
66 +
67 +LICENSE="PSF-2"
68 +SLOT="${PYVER}"
69 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
70 +IUSE="bluetooth build examples gdbm hardened +ncurses +readline +sqlite +ssl test tk wininst +xml"
71 +RESTRICT="!test? ( test )"
72 +
73 +# Do not add a dependency on dev-lang/python to this ebuild.
74 +# If you need to apply a patch which requires python for bootstrapping, please
75 +# run the bootstrap code on your dev box and include the results in the
76 +# patchset. See bug 447752.
77 +
78 +RDEPEND="app-arch/bzip2:=
79 + app-arch/xz-utils:=
80 + dev-libs/libffi:=
81 + sys-apps/util-linux:=
82 + >=sys-libs/zlib-1.1.3:=
83 + virtual/libcrypt:=
84 + virtual/libintl
85 + gdbm? ( sys-libs/gdbm:=[berkdb] )
86 + ncurses? ( >=sys-libs/ncurses-5.2:= )
87 + readline? ( >=sys-libs/readline-4.1:= )
88 + sqlite? ( >=dev-db/sqlite-3.3.8:3= )
89 + ssl? ( >=dev-libs/openssl-1.1.1:= )
90 + tk? (
91 + >=dev-lang/tcl-8.0:=
92 + >=dev-lang/tk-8.0:=
93 + dev-tcltk/blt:=
94 + dev-tcltk/tix
95 + )
96 + xml? ( >=dev-libs/expat-2.1:= )
97 + !!<sys-apps/sandbox-2.21"
98 +# bluetooth requires headers from bluez
99 +DEPEND="${RDEPEND}
100 + bluetooth? ( net-wireless/bluez )
101 + test? ( app-arch/xz-utils[extra-filters(+)] )"
102 +# autoconf-archive needed to eautoreconf
103 +BDEPEND="
104 + sys-devel/autoconf-archive
105 + virtual/pkgconfig
106 + verify-sig? ( app-crypt/openpgp-keys-python )
107 + !sys-devel/gcc[libffi(-)]"
108 +RDEPEND+=" !build? ( app-misc/mime-types )"
109 +
110 +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/python.org.asc
111 +
112 +# large file tests involve a 2.5G file being copied (duplicated)
113 +CHECKREQS_DISK_BUILD=5500M
114 +
115 +pkg_pretend() {
116 + use test && check-reqs_pkg_pretend
117 +}
118 +
119 +pkg_setup() {
120 + use test && check-reqs_pkg_setup
121 +}
122 +
123 +src_unpack() {
124 + if use verify-sig; then
125 + verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.xz{,.asc}
126 + fi
127 + default
128 +}
129 +
130 +src_prepare() {
131 + # Ensure that internal copies of expat, libffi and zlib are not used.
132 + rm -fr Modules/expat || die
133 + rm -fr Modules/_ctypes/libffi* || die
134 + rm -fr Modules/zlib || die
135 +
136 + local PATCHES=(
137 + "${WORKDIR}/${PATCHSET}"
138 + )
139 +
140 + default
141 +
142 + sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
143 + setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
144 +
145 + # force correct number of jobs
146 + # https://bugs.gentoo.org/737660
147 + local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
148 + sed -i -e "s:-j0:-j${jobs}:" Makefile.pre.in || die
149 + sed -i -e "/self\.parallel/s:True:${jobs}:" setup.py || die
150 +
151 + eautoreconf
152 +}
153 +
154 +src_configure() {
155 + local disable
156 + # disable automagic bluetooth headers detection
157 + use bluetooth || export ac_cv_header_bluetooth_bluetooth_h=no
158 + use gdbm || disable+=" gdbm"
159 + use ncurses || disable+=" _curses _curses_panel"
160 + use readline || disable+=" readline"
161 + use sqlite || disable+=" _sqlite3"
162 + use ssl || export PYTHON_DISABLE_SSL="1"
163 + use tk || disable+=" _tkinter"
164 + use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
165 + export PYTHON_DISABLE_MODULES="${disable}"
166 +
167 + if ! use xml; then
168 + ewarn "You have configured Python without XML support."
169 + ewarn "This is NOT a recommended configuration as you"
170 + ewarn "may face problems parsing any XML documents."
171 + fi
172 +
173 + if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
174 + einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
175 + fi
176 +
177 + if [[ "$(gcc-major-version)" -ge 4 ]]; then
178 + append-flags -fwrapv
179 + fi
180 +
181 + filter-flags -malign-double
182 +
183 + # https://bugs.gentoo.org/show_bug.cgi?id=50309
184 + if is-flagq -O3; then
185 + is-flagq -fstack-protector-all && replace-flags -O3 -O2
186 + use hardened && replace-flags -O3 -O2
187 + fi
188 +
189 + # https://bugs.gentoo.org/700012
190 + if is-flagq -flto || is-flagq '-flto=*'; then
191 + append-cflags $(test-flags-CC -ffat-lto-objects)
192 + fi
193 +
194 + # Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
195 + tc-export CXX
196 +
197 + # Fix implicit declarations on cross and prefix builds. Bug #674070.
198 + use ncurses && append-cppflags -I"${ESYSROOT}"/usr/include/ncursesw
199 +
200 + local dbmliborder
201 + if use gdbm; then
202 + dbmliborder+="${dbmliborder:+:}gdbm"
203 + fi
204 +
205 + local myeconfargs=(
206 + # glibc-2.30 removes it; since we can't cleanly force-rebuild
207 + # Python on glibc upgrade, remove it proactively to give
208 + # a chance for users rebuilding python before glibc
209 + ac_cv_header_stropts_h=no
210 +
211 + --enable-shared
212 + --without-static-libpython
213 + --enable-ipv6
214 + --infodir='${prefix}/share/info'
215 + --mandir='${prefix}/share/man'
216 + --with-computed-gotos
217 + --with-dbmliborder="${dbmliborder}"
218 + --with-libc=
219 + --enable-loadable-sqlite-extensions
220 + --without-ensurepip
221 + --with-system-expat
222 + --with-system-ffi
223 + )
224 +
225 + OPT="" econf "${myeconfargs[@]}"
226 +
227 + if grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
228 + eerror "configure has detected that the sem_open function is broken."
229 + eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
230 + die "Broken sem_open function (bug 496328)"
231 + fi
232 +}
233 +
234 +src_compile() {
235 + # Ensure sed works as expected
236 + # https://bugs.gentoo.org/594768
237 + local -x LC_ALL=C
238 +
239 + emake CPPFLAGS= CFLAGS= LDFLAGS=
240 +
241 + # Work around bug 329499. See also bug 413751 and 457194.
242 + if has_version dev-libs/libffi[pax-kernel]; then
243 + pax-mark E python
244 + else
245 + pax-mark m python
246 + fi
247 +}
248 +
249 +src_test() {
250 + # Tests will not work when cross compiling.
251 + if tc-is-cross-compiler; then
252 + elog "Disabling tests due to crosscompiling."
253 + return
254 + fi
255 +
256 + # Skip failing tests.
257 + local skipped_tests="gdb"
258 +
259 + for test in ${skipped_tests}; do
260 + mv "${S}"/Lib/test/test_${test}.py "${T}"
261 + done
262 +
263 + # bug 660358
264 + local -x COLUMNS=80
265 + local -x PYTHONDONTWRITEBYTECODE=
266 + # workaround https://bugs.gentoo.org/775416
267 + addwrite /usr/lib/python3.10/site-packages
268 +
269 + local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
270 +
271 + emake test EXTRATESTOPTS="-u-network -j${jobs}" \
272 + CPPFLAGS= CFLAGS= LDFLAGS= < /dev/tty
273 + local result=$?
274 +
275 + for test in ${skipped_tests}; do
276 + mv "${T}/test_${test}.py" "${S}"/Lib/test
277 + done
278 +
279 + elog "The following tests have been skipped:"
280 + for test in ${skipped_tests}; do
281 + elog "test_${test}.py"
282 + done
283 +
284 + elog "If you would like to run them, you may:"
285 + elog "cd '${EPREFIX}/usr/lib/python${PYVER}/test'"
286 + elog "and run the tests separately."
287 +
288 + if [[ ${result} -ne 0 ]]; then
289 + die "emake test failed"
290 + fi
291 +}
292 +
293 +src_install() {
294 + local libdir=${ED}/usr/lib/python${PYVER}
295 +
296 + emake DESTDIR="${D}" altinstall
297 +
298 + sed \
299 + -e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
300 + -e "s/\(PY_LDFLAGS=\).*/\1/" \
301 + -i "${libdir}/config-${PYVER}"*/Makefile || die "sed failed"
302 +
303 + # Fix collisions between different slots of Python.
304 + rm "${ED}/usr/$(get_libdir)/libpython3.so" || die
305 +
306 + # Cheap hack to get version with ABIFLAGS
307 + local abiver=$(cd "${ED}/usr/include"; echo python*)
308 + if [[ ${abiver} != python${PYVER} ]]; then
309 + # Replace python3.X with a symlink to python3.Xm
310 + rm "${ED}/usr/bin/python${PYVER}" || die
311 + dosym "${abiver}" "/usr/bin/python${PYVER}"
312 + # Create python3.X-config symlink
313 + dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
314 + # Create python-3.5m.pc symlink
315 + dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc"
316 + fi
317 +
318 + # python seems to get rebuilt in src_install (bug 569908)
319 + # Work around it for now.
320 + if has_version dev-libs/libffi[pax-kernel]; then
321 + pax-mark E "${ED}/usr/bin/${abiver}"
322 + else
323 + pax-mark m "${ED}/usr/bin/${abiver}"
324 + fi
325 +
326 + use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
327 + use tk || rm -r "${ED}/usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*} || die
328 +
329 + dodoc Misc/{ACKS,HISTORY,NEWS}
330 +
331 + if use examples; then
332 + docinto examples
333 + find Tools -name __pycache__ -exec rm -fr {} + || die
334 + dodoc -r Tools
335 + fi
336 + insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
337 + local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
338 + emake --no-print-directory -s -f - 2>/dev/null)
339 + newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
340 +
341 + newconfd "${FILESDIR}/pydoc.conf" pydoc-${PYVER}
342 + newinitd "${FILESDIR}/pydoc.init" pydoc-${PYVER}
343 + sed \
344 + -e "s:@PYDOC_PORT_VARIABLE@:PYDOC${PYVER/./_}_PORT:" \
345 + -e "s:@PYDOC@:pydoc${PYVER}:" \
346 + -i "${ED}/etc/conf.d/pydoc-${PYVER}" \
347 + "${ED}/etc/init.d/pydoc-${PYVER}" || die "sed failed"
348 +
349 + local -x EPYTHON=python${PYVER}
350 + # if not using a cross-compiler, use the fresh binary
351 + if ! tc-is-cross-compiler; then
352 + local -x PYTHON=./python
353 + local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}${PWD}
354 + else
355 + local -x PYTHON=${EPREFIX}/usr/bin/${EPYTHON}
356 + fi
357 +
358 + echo "EPYTHON='${EPYTHON}'" > epython.py || die
359 + python_domodule epython.py
360 +
361 + # python-exec wrapping support
362 + local pymajor=${PYVER%.*}
363 + local scriptdir=${D}$(python_get_scriptdir)
364 + mkdir -p "${scriptdir}" || die
365 + # python and pythonX
366 + ln -s "../../../bin/${abiver}" \
367 + "${scriptdir}/python${pymajor}" || die
368 + ln -s "python${pymajor}" "${scriptdir}/python" || die
369 + # python-config and pythonX-config
370 + # note: we need to create a wrapper rather than symlinking it due
371 + # to some random dirname(argv[0]) magic performed by python-config
372 + cat > "${scriptdir}/python${pymajor}-config" <<-EOF || die
373 + #!/bin/sh
374 + exec "${abiver}-config" "\${@}"
375 + EOF
376 + chmod +x "${scriptdir}/python${pymajor}-config" || die
377 + ln -s "python${pymajor}-config" \
378 + "${scriptdir}/python-config" || die
379 + # 2to3, pydoc
380 + ln -s "../../../bin/2to3-${PYVER}" \
381 + "${scriptdir}/2to3" || die
382 + ln -s "../../../bin/pydoc${PYVER}" \
383 + "${scriptdir}/pydoc" || die
384 + # idle
385 + if use tk; then
386 + ln -s "../../../bin/idle${PYVER}" \
387 + "${scriptdir}/idle" || die
388 + fi
389 +}