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: Mon, 01 Mar 2021 22:58:14
Message-Id: 1614639485.1f9f5b5b354cac65161e223d6eef9a82e36a1aee.mgorny@gentoo
1 commit: 1f9f5b5b354cac65161e223d6eef9a82e36a1aee
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 1 22:21:12 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 1 22:58:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f9f5b5b
7
8 dev-lang/python: Bump to 3.10.0a6
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_alpha6.ebuild | 347 ++++++++++++++++++++++++++++
14 2 files changed, 350 insertions(+)
15
16 diff --git a/dev-lang/python/Manifest b/dev-lang/python/Manifest
17 index f753f9009e9..15af1a2d4a7 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.0a5.tar.xz 18286124 BLAKE2B 618a812c601cdf910dc5064ec8e6350f3473c368be92663de0a543aef8dab5d767db72e0c796e465dafb86e3ee6acf21f4d2d6d99128a3bb615b8ba6759c9b6f SHA512 d686f9044ea964af2b5556068c0d804511d3148b455643d06a8b566f265a5fa9a9a3713ff0c3fee2c0da9bba33b913983ea4fcb22d679cfdcb83c6de32aa575e
23 DIST Python-3.10.0a5.tar.xz.asc 833 BLAKE2B f92a03f8ce6d3396f053ab508aca55c937b5ae91462e2325842b4c00fc105a817df10fb4086273939a50f91fcd5d1003da2807d1b8ab0794e6ecd660d72515bf SHA512 4f1fe9b42830c89cb35ea1634fd7484f3bbf7ff22868c71fadc0601c3b02ff2ea386cfbc7ea167a2770d732aa01532fb7d4abb198a07e4710565e3eec138408c
24 +DIST Python-3.10.0a6.tar.xz 18354336 BLAKE2B 30e39f6657546f19792e037a4dc2877c0cca722f894088736ca373c79f23d0697ef35a631a3d96a26b625fadc32dddb187bfdcf105d874efef8325704bcbb29c SHA512 b405e4d0294306ceab205ba98b6f34a0384993a2eff93b75974bb9bfc25599ab594ef98c633de9db77de11cef11f03e4c9b5090f985cc00e8b9dec39003997a6
25 +DIST Python-3.10.0a6.tar.xz.asc 833 BLAKE2B 415dad66ac08c086e7da1657d99864b930e07fb521a9dc7cd2b0b72d97882f71e662a42be5cec6b44cfc0d1308163f0f54e7660dc91d6a81dfa12fd0df150c83 SHA512 4f6e86afd09622a461d712b32fb48ba76c37dbc807d84cd375be4afed53b43ca4e0027a816383323d8ccd334845a2e5337ba15a83097a0e0df9270f439b1964e
26 DIST Python-3.6.12.tar.xz 17202980 BLAKE2B c8d22e4d57bcaffe77cd902cda3a473e73adf2b74ab104c23b4d846f19632a24cc0c478af84079b16d784bd1c0956824c06c1f6134fd24f54e58aaab0fe96bb6 SHA512 1462801f3f6626a853097d34ccdca9838c4c5bd81ecc3abc751003f5f2f8d36eecdaa4130ef4218de351c5586093c11669639a34492668fbc5a2a4a241f4a070
27 DIST Python-3.6.12.tar.xz.asc 833 BLAKE2B a5eb9f907732bb5afd8f56115ab830ed6b6f4545e4063cfe316fb7aa1ba8694fcb8c936919b4045d9f5923446f8ea20978ead059078ed50ad48a82a3bb5ae941 SHA512 91d9ce0c471359f6aa3d5d5dcad7316ec6ed173f895a51e72b1853dc422fda57a00411c88fdc40a8e21888d964136b0b032e15b215c3b6c62ffc82bddc580860
28 DIST Python-3.6.13.tar.xz 17213520 BLAKE2B 7c1938f92616d428d107a70397a9f7fc82377d0e3d26c2da4f5bcb79a54115f71498a5e7b5f601b6cff6f362ec1f689c3ac920eb248956e1e4f6c21602514dd1 SHA512 0482b3e7eea22b0635b61f06753e77c832c9431385c5ea1ecb8f60868262afd2b45c239badb8e906a33f035ffbf347b4a499fe6f0f008f1fa9ecc9de66c63947
29 @@ -22,6 +24,7 @@ DIST python-gentoo-patches-2.7.18-r6.tar.xz 22740 BLAKE2B 1727fcab273dfe5e5739c7
30 DIST python-gentoo-patches-2.7.18_p7.tar.xz 26392 BLAKE2B 94a6312698789810af835a2ac8d87c34dc8d435a1ff4d5c9b7ae9175b92da6a4b204feabf9bb6db498fc6dcc17bb1b042b2b0b17ddc781587589b1ab0905396d SHA512 a3cd34f38a717183d9a8d6b91817a6ac989fb8ae4275f35cba4be810813a4c9c45f4e72d16aee33904eddaee77c4719b516392d629d2c4627c840e4ecc6bc121
31 DIST python-gentoo-patches-3.10.0a5.tar.xz 8972 BLAKE2B b407e501037f2732ec0844ab033fcd6226ff96731f5e752b5a807c69aa57e678e9f170aab5dd3f69bd9d2951c82ecca4664354c11aca88a4a742281ab5d28887 SHA512 4dceba9adc33b06196f326dbeacb8b17eaeffebee98f0025d4faef8f047be9c20a153a8eb89a2b64f9248cbd8810ae4a5ebfc2534770a940825a5d8a4a02e068
32 DIST python-gentoo-patches-3.10.0a5_p1.tar.xz 14336 BLAKE2B 953d77e59460bbd53bf41bc57e48957f6a6d08dc9f8a1adb4ad3c64a0a1281a15142952e6733c1dd9a5eadd6d81332db54dc4eb906e73ccfd35e0d18a8363962 SHA512 2c0f01c39e530a612e1ce64298d3f019f7313258b2dc75964b6ebdfcd98139d46fc5f673ee2e509602a2f825de23e3a6d96c234745098e1da83b6779dbbeb1fb
33 +DIST python-gentoo-patches-3.10.0a6.tar.xz 8148 BLAKE2B 0fb7fc2eb2d17ff34f9b973aee7761d78b279425044f80a8f3f6a97ae479492f509bf4a18bce16e9b5efd44e6a755a9af3cac1a63e8fa7169e4880ad08bc0f7a SHA512 39d449ef090ac01463e507784500fde408487350d5a5cf86b9bda852f451841874557d674c69eb31e94121d2d243f862ea97cd0d8ba69f4ddfdefa461336594b
34 DIST python-gentoo-patches-3.6.12-r2.tar.xz 17988 BLAKE2B c252bce5ac49b9af11174d3c974d95c24ec280230cede75a7650cb914f8acb3d41b8d575e469fe7f274c6d3bc238847b82e815bf1444c5afd7292e00248e3365 SHA512 50813fbd810c8b865c0f0f8d56780af7a9e094336ba486ddd94ba8fb0a83b5373f41274bbb10c3d732449ee5b2076b7430404c02bfac10fb9b27f92de79c25e2
35 DIST python-gentoo-patches-3.6.12_p3.tar.xz 22416 BLAKE2B deddb2b4b23f7caa2b40a0916f5426f28f616b8fc6834c237623fb4e633dfbe1f946ff7e54989664a662184e01721f15f21a1d379db633d7f245b23fac3d7e47 SHA512 49ffeba37003dc1afe27811d880469a991583efb73c28871717e51711533927996293c576082e35fff17db98e7ba6e512e84289c4b7ed5a6880b011a9741a59b
36 DIST python-gentoo-patches-3.6.13.tar.xz 11428 BLAKE2B 3f6ea5a5a79ba6b0d12d9d36c62232cbf0accbc3a8d792a12e2ed8ad5ce5079ac5a5d12493fbc36dff66b275a18a538c439fff02efdd77a68d5c974aa0e62a96 SHA512 118a8ca9d19b515d03ec834a950410bd8c8086dd9b3ea2e1dff5c7d3d42a4d873bccea62aa9d1b64f92892aecd090eb1337dec7d200668d55fece68eeacfa2dc
37
38 diff --git a/dev-lang/python/python-3.10.0_alpha6.ebuild b/dev-lang/python/python-3.10.0_alpha6.ebuild
39 new file mode 100644
40 index 00000000000..d059b8bfc60
41 --- /dev/null
42 +++ b/dev-lang/python/python-3.10.0_alpha6.ebuild
43 @@ -0,0 +1,347 @@
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/_alpha/a}
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 ipv6 libressl +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? (
90 + !libressl? ( dev-libs/openssl:= )
91 + libressl? ( dev-libs/libressl:= )
92 + )
93 + tk? (
94 + >=dev-lang/tcl-8.0:=
95 + >=dev-lang/tk-8.0:=
96 + dev-tcltk/blt:=
97 + dev-tcltk/tix
98 + )
99 + xml? ( >=dev-libs/expat-2.1:= )"
100 +# bluetooth requires headers from bluez
101 +DEPEND="${RDEPEND}
102 + bluetooth? ( net-wireless/bluez )
103 + test? ( app-arch/xz-utils[extra-filters(+)] )"
104 +# autoconf-archive needed to eautoreconf
105 +BDEPEND="
106 + sys-devel/autoconf-archive
107 + virtual/pkgconfig
108 + verify-sig? ( app-crypt/openpgp-keys-python )
109 + !sys-devel/gcc[libffi(-)]"
110 +PDEPEND="app-eselect/eselect-python"
111 +RDEPEND+=" !build? ( app-misc/mime-types )"
112 +
113 +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/python.org.asc
114 +
115 +# large file tests involve a 2.5G file being copied (duplicated)
116 +CHECKREQS_DISK_BUILD=5500M
117 +
118 +pkg_pretend() {
119 + use test && check-reqs_pkg_pretend
120 +}
121 +
122 +pkg_setup() {
123 + use test && check-reqs_pkg_setup
124 +}
125 +
126 +src_unpack() {
127 + if use verify-sig; then
128 + verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.xz{,.asc}
129 + fi
130 + default
131 +}
132 +
133 +src_prepare() {
134 + # Ensure that internal copies of expat, libffi and zlib are not used.
135 + rm -fr Modules/expat || die
136 + rm -fr Modules/_ctypes/libffi* || die
137 + rm -fr Modules/zlib || die
138 +
139 + local PATCHES=(
140 + "${WORKDIR}/${PATCHSET}"
141 + )
142 +
143 + default
144 +
145 + sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
146 + setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
147 +
148 + # force correct number of jobs
149 + # https://bugs.gentoo.org/737660
150 + local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
151 + sed -i -e "s:-j0:-j${jobs}:" Makefile.pre.in || die
152 + sed -i -e "/self\.parallel/s:True:${jobs}:" setup.py || die
153 +
154 + eautoreconf
155 +}
156 +
157 +src_configure() {
158 + local disable
159 + # disable automagic bluetooth headers detection
160 + use bluetooth || export ac_cv_header_bluetooth_bluetooth_h=no
161 + use gdbm || disable+=" gdbm"
162 + use ncurses || disable+=" _curses _curses_panel"
163 + use readline || disable+=" readline"
164 + use sqlite || disable+=" _sqlite3"
165 + use ssl || export PYTHON_DISABLE_SSL="1"
166 + use tk || disable+=" _tkinter"
167 + use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
168 + export PYTHON_DISABLE_MODULES="${disable}"
169 +
170 + if ! use xml; then
171 + ewarn "You have configured Python without XML support."
172 + ewarn "This is NOT a recommended configuration as you"
173 + ewarn "may face problems parsing any XML documents."
174 + fi
175 +
176 + if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
177 + einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
178 + fi
179 +
180 + if [[ "$(gcc-major-version)" -ge 4 ]]; then
181 + append-flags -fwrapv
182 + fi
183 +
184 + filter-flags -malign-double
185 +
186 + # https://bugs.gentoo.org/show_bug.cgi?id=50309
187 + if is-flagq -O3; then
188 + is-flagq -fstack-protector-all && replace-flags -O3 -O2
189 + use hardened && replace-flags -O3 -O2
190 + fi
191 +
192 + # https://bugs.gentoo.org/700012
193 + if is-flagq -flto || is-flagq '-flto=*'; then
194 + append-cflags $(test-flags-CC -ffat-lto-objects)
195 + fi
196 +
197 + # Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
198 + tc-export CXX
199 +
200 + # Fix implicit declarations on cross and prefix builds. Bug #674070.
201 + use ncurses && append-cppflags -I"${ESYSROOT}"/usr/include/ncursesw
202 +
203 + local dbmliborder
204 + if use gdbm; then
205 + dbmliborder+="${dbmliborder:+:}gdbm"
206 + fi
207 +
208 + local myeconfargs=(
209 + # glibc-2.30 removes it; since we can't cleanly force-rebuild
210 + # Python on glibc upgrade, remove it proactively to give
211 + # a chance for users rebuilding python before glibc
212 + ac_cv_header_stropts_h=no
213 +
214 + --enable-shared
215 + --without-static-libpython
216 + $(use_enable ipv6)
217 + --infodir='${prefix}/share/info'
218 + --mandir='${prefix}/share/man'
219 + --with-computed-gotos
220 + --with-dbmliborder="${dbmliborder}"
221 + --with-libc=
222 + --enable-loadable-sqlite-extensions
223 + --without-ensurepip
224 + --with-system-expat
225 + --with-system-ffi
226 + )
227 +
228 + OPT="" econf "${myeconfargs[@]}"
229 +
230 + if grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
231 + eerror "configure has detected that the sem_open function is broken."
232 + eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
233 + die "Broken sem_open function (bug 496328)"
234 + fi
235 +}
236 +
237 +src_compile() {
238 + # Ensure sed works as expected
239 + # https://bugs.gentoo.org/594768
240 + local -x LC_ALL=C
241 +
242 + emake CPPFLAGS= CFLAGS= LDFLAGS=
243 +
244 + # Work around bug 329499. See also bug 413751 and 457194.
245 + if has_version dev-libs/libffi[pax_kernel]; then
246 + pax-mark E python
247 + else
248 + pax-mark m python
249 + fi
250 +}
251 +
252 +src_test() {
253 + # Tests will not work when cross compiling.
254 + if tc-is-cross-compiler; then
255 + elog "Disabling tests due to crosscompiling."
256 + return
257 + fi
258 +
259 + # Skip failing tests.
260 + local skipped_tests="gdb"
261 +
262 + for test in ${skipped_tests}; do
263 + mv "${S}"/Lib/test/test_${test}.py "${T}"
264 + done
265 +
266 + # bug 660358
267 + local -x COLUMNS=80
268 + local -x PYTHONDONTWRITEBYTECODE=
269 +
270 + local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
271 +
272 + emake test EXTRATESTOPTS="-u-network -j${jobs}" \
273 + CPPFLAGS= CFLAGS= LDFLAGS= < /dev/tty
274 + local result=$?
275 +
276 + for test in ${skipped_tests}; do
277 + mv "${T}/test_${test}.py" "${S}"/Lib/test
278 + done
279 +
280 + elog "The following tests have been skipped:"
281 + for test in ${skipped_tests}; do
282 + elog "test_${test}.py"
283 + done
284 +
285 + elog "If you would like to run them, you may:"
286 + elog "cd '${EPREFIX}/usr/lib/python${PYVER}/test'"
287 + elog "and run the tests separately."
288 +
289 + if [[ ${result} -ne 0 ]]; then
290 + die "emake test failed"
291 + fi
292 +}
293 +
294 +src_install() {
295 + local libdir=${ED}/usr/lib/python${PYVER}
296 +
297 + emake DESTDIR="${D}" altinstall
298 +
299 + sed \
300 + -e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
301 + -e "s/\(PY_LDFLAGS=\).*/\1/" \
302 + -i "${libdir}/config-${PYVER}"*/Makefile || die "sed failed"
303 +
304 + # Fix collisions between different slots of Python.
305 + rm "${ED}/usr/$(get_libdir)/libpython3.so" || die
306 +
307 + # Cheap hack to get version with ABIFLAGS
308 + local abiver=$(cd "${ED}/usr/include"; echo python*)
309 + if [[ ${abiver} != python${PYVER} ]]; then
310 + # Replace python3.X with a symlink to python3.Xm
311 + rm "${ED}/usr/bin/python${PYVER}" || die
312 + dosym "${abiver}" "/usr/bin/python${PYVER}"
313 + # Create python3.X-config symlink
314 + dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
315 + # Create python-3.5m.pc symlink
316 + dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc"
317 + fi
318 +
319 + # python seems to get rebuilt in src_install (bug 569908)
320 + # Work around it for now.
321 + if has_version dev-libs/libffi[pax_kernel]; then
322 + pax-mark E "${ED}/usr/bin/${abiver}"
323 + else
324 + pax-mark m "${ED}/usr/bin/${abiver}"
325 + fi
326 +
327 + use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
328 + use tk || rm -r "${ED}/usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*} || die
329 +
330 + dodoc Misc/{ACKS,HISTORY,NEWS}
331 +
332 + if use examples; then
333 + docinto examples
334 + find Tools -name __pycache__ -exec rm -fr {} + || die
335 + dodoc -r Tools
336 + fi
337 + insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
338 + local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
339 + emake --no-print-directory -s -f - 2>/dev/null)
340 + newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
341 +
342 + newconfd "${FILESDIR}/pydoc.conf" pydoc-${PYVER}
343 + newinitd "${FILESDIR}/pydoc.init" pydoc-${PYVER}
344 + sed \
345 + -e "s:@PYDOC_PORT_VARIABLE@:PYDOC${PYVER/./_}_PORT:" \
346 + -e "s:@PYDOC@:pydoc${PYVER}:" \
347 + -i "${ED}/etc/conf.d/pydoc-${PYVER}" \
348 + "${ED}/etc/init.d/pydoc-${PYVER}" || die "sed failed"
349 +
350 + local -x EPYTHON=python${PYVER}
351 + # if not using a cross-compiler, use the fresh binary
352 + if ! tc-is-cross-compiler; then
353 + local -x PYTHON=./python
354 + local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}${PWD}
355 + else
356 + local -x PYTHON=${EPREFIX}/usr/bin/${EPYTHON}
357 + fi
358 +
359 + echo "EPYTHON='${EPYTHON}'" > epython.py || die
360 + python_domodule epython.py
361 +
362 + # python-exec wrapping support
363 + local pymajor=${PYVER%.*}
364 + local scriptdir=${D}$(python_get_scriptdir)
365 + mkdir -p "${scriptdir}" || die
366 + # python and pythonX
367 + ln -s "../../../bin/${abiver}" \
368 + "${scriptdir}/python${pymajor}" || die
369 + ln -s "python${pymajor}" "${scriptdir}/python" || die
370 + # python-config and pythonX-config
371 + # note: we need to create a wrapper rather than symlinking it due
372 + # to some random dirname(argv[0]) magic performed by python-config
373 + cat > "${scriptdir}/python${pymajor}-config" <<-EOF || die
374 + #!/bin/sh
375 + exec "${abiver}-config" "\${@}"
376 + EOF
377 + chmod +x "${scriptdir}/python${pymajor}-config" || die
378 + ln -s "python${pymajor}-config" \
379 + "${scriptdir}/python-config" || die
380 + # 2to3, pydoc
381 + ln -s "../../../bin/2to3-${PYVER}" \
382 + "${scriptdir}/2to3" || die
383 + ln -s "../../../bin/pydoc${PYVER}" \
384 + "${scriptdir}/pydoc" || die
385 + # idle
386 + if use tk; then
387 + ln -s "../../../bin/idle${PYVER}" \
388 + "${scriptdir}/idle" || die
389 + fi
390 +}