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-python/pypy3/
Date: Sun, 29 Apr 2018 06:34:01
Message-Id: 1524983044.0e89154aa285dbf8beda3e3963ddb49ba28dfa2b.mgorny@gentoo
1 commit: 0e89154aa285dbf8beda3e3963ddb49ba28dfa2b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 06:20:08 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 06:24:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e89154a
7
8 dev-python/pypy3: Drop <5.10.1
9
10 dev-python/pypy3/Manifest | 2 -
11 dev-python/pypy3/pypy3-5.10.0.ebuild | 245 --------------------------------
12 dev-python/pypy3/pypy3-5.9.0-r1.ebuild | 251 ---------------------------------
13 3 files changed, 498 deletions(-)
14
15 diff --git a/dev-python/pypy3/Manifest b/dev-python/pypy3/Manifest
16 index 9978328ad1b..6dd2807fe54 100644
17 --- a/dev-python/pypy3/Manifest
18 +++ b/dev-python/pypy3/Manifest
19 @@ -1,4 +1,2 @@
20 -DIST pypy3-v5.10.0-src.tar.bz2 29075971 BLAKE2B 02fb64d514ab292e09ced57e1c206b04d0fb38353ad6ec0e836448344a6d126d0fccfb61cbd278ea3acaa227032640e82f9ffd7efe3b33ade1ca34a18831b3e4 SHA512 69a373c18dbad9dd617f994ad885c8d8975f0c484ba9dd547e6e892c9a3030a43e9e3ee668aee5f4969403883de1311cef97a0a5e5701921172ee6c2119b771b
21 DIST pypy3-v5.10.1-src.tar.bz2 29071765 BLAKE2B d5c163697d8dd36a9a61e9a355719628902de0c9a4c038d31cd134d9bb26b8058abfdf85b09715208146295c37e343fae5e1e4a3c8d1999306eeea93791e326c SHA512 91b0ed25130bdbb46d5e577136b5fe63d5162917dcc2d0b69f5cac2a283ece9d0bfd3c7c8dc61ff391e0550fa1603326f6edeb2df3159d71617fefe6c07439f5
22 -DIST pypy3-v5.9.0-src.tar.bz2 29055111 BLAKE2B 181d87ebe4a83a3f03b28d891f248f718ad120ed54621f8054f19a65aebbe90b65c69e40ca656612356b2019aa9ac22d5e242e688a80190b046511a8ceb9c040 SHA512 3d5384d644fdd1bc8b95f5747dbd1771ae06eb2cfc7b57be359b8bf40177676afd097620d0cb9d9000c40d8cce075cfa6bfd92de987d3dd927c04d7d595dc5bd
23 DIST pypy3-v6.0.0-src.tar.bz2 22648140 BLAKE2B b8678859b0c24494788ddf6f410a3ec1a56a04663452e1aba25d3f41c5073a95866d1623f00cb1a6c9d0256df728fa60d1edb5b58d26c0d88577769cc8a6205d SHA512 ea406c4dd1837a6ab13026de01330790f3c18f6e2bfb83e8553e52acf78b43dfb559ce75c2d91395055c771db359356c8183ed950da6f01a21bf09128935af5e
24
25 diff --git a/dev-python/pypy3/pypy3-5.10.0.ebuild b/dev-python/pypy3/pypy3-5.10.0.ebuild
26 deleted file mode 100644
27 index dcef9d5439d..00000000000
28 --- a/dev-python/pypy3/pypy3-5.10.0.ebuild
29 +++ /dev/null
30 @@ -1,245 +0,0 @@
31 -# Copyright 1999-2018 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -
36 -# pypy3 needs to be built using python 2
37 -PYTHON_COMPAT=( python2_7 pypy )
38 -inherit check-reqs pax-utils python-any-r1 toolchain-funcs versionator
39 -
40 -MY_P=pypy3-v${PV}
41 -
42 -DESCRIPTION="A fast, compliant alternative implementation of the Python (3.5) language"
43 -HOMEPAGE="http://pypy.org/"
44 -SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2"
45 -
46 -LICENSE="MIT"
47 -# pypy3 -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))'
48 -SLOT="0/510"
49 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
50 -IUSE="bzip2 gdbm +jit libressl low-memory ncurses sandbox sqlite tk"
51 -
52 -RDEPEND=">=sys-libs/zlib-1.1.3:0=
53 - virtual/libffi:0=
54 - virtual/libintl:0=
55 - dev-libs/expat:0=
56 - !libressl? ( dev-libs/openssl:0=[-bindist] )
57 - libressl? ( dev-libs/libressl:0= )
58 - bzip2? ( app-arch/bzip2:0= )
59 - gdbm? ( sys-libs/gdbm:0= )
60 - ncurses? ( sys-libs/ncurses:0= )
61 - sqlite? ( dev-db/sqlite:3= )
62 - tk? (
63 - dev-lang/tk:0=
64 - dev-tcltk/tix:0=
65 - )
66 - !dev-python/pypy3-bin:0"
67 -DEPEND="${RDEPEND}
68 - low-memory? ( virtual/pypy )
69 - !low-memory? (
70 - || (
71 - virtual/pypy
72 - (
73 - dev-lang/python:2.7
74 - dev-python/pycparser[python_targets_python2_7(-),python_single_target_python2_7(+)]
75 - )
76 - )
77 - )"
78 -
79 -S="${WORKDIR}/${MY_P}-src"
80 -
81 -check_env() {
82 - if use low-memory; then
83 - CHECKREQS_MEMORY="1750M"
84 - use amd64 && CHECKREQS_MEMORY="3500M"
85 - else
86 - CHECKREQS_MEMORY="3G"
87 - use amd64 && CHECKREQS_MEMORY="6G"
88 - fi
89 -
90 - check-reqs_pkg_pretend
91 -}
92 -
93 -pkg_pretend() {
94 - [[ ${MERGE_TYPE} != binary ]] && check_env
95 -}
96 -
97 -pkg_setup() {
98 - if [[ ${MERGE_TYPE} != binary ]]; then
99 - check_env
100 -
101 - # unset to allow forcing pypy below :)
102 - use low-memory && local EPYTHON=
103 - if python_is_installed pypy && [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]]; then
104 - einfo "Using PyPy to perform the translation."
105 - local EPYTHON=pypy
106 - else
107 - einfo "Using ${EPYTHON:-python2} to perform the translation. Please note that upstream"
108 - einfo "recommends using PyPy for that. If you wish to do so, please install"
109 - einfo "virtual/pypy and ensure that EPYTHON variable is unset."
110 - fi
111 -
112 - python-any-r1_pkg_setup
113 - fi
114 -}
115 -
116 -src_prepare() {
117 - eapply "${FILESDIR}/4.0.0-gentoo-path.patch"
118 - eapply "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
119 - eapply "${FILESDIR}"/5.9.0-shared-lib.patch # 517002
120 -
121 - sed -e "s^@EPREFIX@^${EPREFIX}^" \
122 - -e "s^@libdir@^$(get_libdir)^" \
123 - -i lib-python/3/distutils/command/install.py || die
124 -
125 - # apply CPython stdlib patches
126 - pushd lib-python/3 > /dev/null || die
127 - eapply "${FILESDIR}"/5.8.0_all_distutils_cxx.patch
128 - eapply "${FILESDIR}"/python-3.5-distutils-OO-build.patch
129 - popd > /dev/null || die
130 -
131 - eapply_user
132 -}
133 -
134 -src_configure() {
135 - tc-export CC
136 -
137 - local args=(
138 - --shared
139 - $(usex jit -Ojit -O2)
140 - $(usex sandbox --sandbox '')
141 -
142 - --jit-backend=auto
143 -
144 - pypy/goal/targetpypystandalone
145 - )
146 -
147 - # Avoid linking against libraries disabled by use flags
148 - local opts=(
149 - bzip2:bz2
150 - ncurses:_minimal_curses
151 - )
152 -
153 - local opt
154 - for opt in "${opts[@]}"; do
155 - local flag=${opt%:*}
156 - local mod=${opt#*:}
157 -
158 - args+=(
159 - $(usex ${flag} --withmod --withoutmod)-${mod}
160 - )
161 - done
162 -
163 - local interp=( "${PYTHON}" )
164 - if use low-memory; then
165 - interp=( env PYPY_GC_MAX_DELTA=200MB
166 - "${PYTHON}" --jit loop_longevity=300 )
167 - fi
168 -
169 - # translate into the C sources
170 - # we're going to make them ourselves since otherwise pypy does not
171 - # free up the unneeded memory before spawning the compiler
172 - set -- "${interp[@]}" rpython/bin/rpython --batch --source "${args[@]}"
173 - echo -e "\033[1m${@}\033[0m"
174 - "${@}" || die "translation failed"
175 -}
176 -
177 -src_compile() {
178 - emake -C "${T}"/usession*-0/testing_1
179 -
180 - # copy back to make sys.prefix happy
181 - cp -p "${T}"/usession*-0/testing_1/{pypy3-c,libpypy3-c.so} . || die
182 - pax-mark m pypy3-c libpypy3-c.so
183 -
184 - einfo "Generating caches and CFFI modules ..."
185 -
186 - # Generate Grammar and PatternGrammar pickles.
187 - ./pypy3-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
188 - || die "Generation of Grammar and PatternGrammar pickles failed"
189 -
190 - # Generate cffi modules
191 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
192 -#cffi_build_scripts = {
193 -# "sqlite3": "_sqlite3_build.py",
194 -# "audioop": "_audioop_build.py",
195 -# "tk": "_tkinter/tklib_build.py",
196 -# "curses": "_curses_build.py" if sys.platform != "win32" else None,
197 -# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
198 -# "_gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
199 -# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
200 -# "resource": "_resource_build.py" if sys.platform != "win32" else None,
201 -# "lzma": "_lzma_build.py",
202 -# "_decimal": "_decimal_build.py",
203 -# "_ssl": "_ssl_build.py",
204 - cffi_targets=( audioop syslog pwdgrp resource lzma decimal ssl )
205 - use gdbm && cffi_targets+=( gdbm )
206 - use ncurses && cffi_targets+=( curses )
207 - use sqlite && cffi_targets+=( sqlite3 )
208 - use tk && cffi_targets+=( tkinter/tklib )
209 -
210 - local t
211 - # all modules except tkinter output to .
212 - # tkinter outputs to the correct dir ...
213 - cd lib_pypy || die
214 - for t in "${cffi_targets[@]}"; do
215 - # tkinter doesn't work via -m
216 - ../pypy3-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
217 - done
218 -
219 - # Cleanup temporary objects
220 - find -name "_cffi_*.[co]" -delete || die
221 - find -type d -empty -delete || die
222 -}
223 -
224 -src_test() {
225 - # (unset)
226 - local -x PYTHONDONTWRITEBYTECODE
227 -
228 - # Test runner requires Python 2 too. However, it spawns PyPy3
229 - # internally so that we end up testing the correct interpreter.
230 - "${PYTHON}" ./pypy/test_all.py --pypy=./pypy3-c lib-python || die
231 -}
232 -
233 -src_install() {
234 - local dest=/usr/$(get_libdir)/pypy3
235 - einfo "Installing PyPy ..."
236 - exeinto "${dest}"
237 - doexe pypy3-c libpypy3-c.so
238 - pax-mark m "${ED%/}${dest}/pypy3-c" "${ED%/}${dest}/libpypy3-c.so"
239 - insinto "${dest}"
240 - # preserve mtimes to avoid obsoleting caches
241 - insopts -p
242 - doins -r include lib_pypy lib-python
243 - dosym ../$(get_libdir)/pypy3/pypy3-c /usr/bin/pypy3
244 - dodoc README.rst
245 -
246 - if ! use gdbm; then
247 - rm -r "${ED%/}${dest}"/lib_pypy/_gdbm* || die
248 - fi
249 - if ! use sqlite; then
250 - rm -r "${ED%/}${dest}"/lib-python/*3/sqlite3 \
251 - "${ED%/}${dest}"/lib_pypy/_sqlite3* \
252 - "${ED%/}${dest}"/lib-python/*3/test/test_sqlite.py || die
253 - fi
254 - if ! use tk; then
255 - rm -r "${ED%/}${dest}"/lib-python/*3/{idlelib,tkinter} \
256 - "${ED%/}${dest}"/lib_pypy/_tkinter \
257 - "${ED%/}${dest}"/lib-python/*3/test/test_{tcl,tk,ttk*}.py || die
258 - fi
259 -
260 - einfo "Generating caches and byte-compiling ..."
261 -
262 - local -x PYTHON=${ED%/}${dest}/pypy3-c
263 - # we can't use eclass function since PyPy is dumb and always gives
264 - # paths relative to the interpreter
265 - local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy3/site-packages
266 - python_export pypy3 EPYTHON
267 -
268 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
269 - python_domodule epython.py
270 -
271 - einfo "Byte-compiling Python standard library..."
272 -
273 - # compile the installed modules
274 - python_optimize "${ED%/}${dest}"
275 -}
276
277 diff --git a/dev-python/pypy3/pypy3-5.9.0-r1.ebuild b/dev-python/pypy3/pypy3-5.9.0-r1.ebuild
278 deleted file mode 100644
279 index a1892572aac..00000000000
280 --- a/dev-python/pypy3/pypy3-5.9.0-r1.ebuild
281 +++ /dev/null
282 @@ -1,251 +0,0 @@
283 -# Copyright 1999-2017 Gentoo Foundation
284 -# Distributed under the terms of the GNU General Public License v2
285 -
286 -EAPI=6
287 -
288 -# pypy3 needs to be built using python 2
289 -PYTHON_COMPAT=( python2_7 pypy )
290 -inherit check-reqs pax-utils python-any-r1 toolchain-funcs versionator
291 -
292 -MY_P=pypy3-v${PV}
293 -
294 -DESCRIPTION="A fast, compliant alternative implementation of the Python (3.3) language"
295 -HOMEPAGE="http://pypy.org/"
296 -SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2"
297 -
298 -LICENSE="MIT"
299 -# pypy3 -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))'
300 -SLOT="0/59"
301 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
302 -IUSE="bzip2 gdbm +jit libressl low-memory ncurses sandbox sqlite tk"
303 -
304 -RDEPEND=">=sys-libs/zlib-1.1.3:0=
305 - virtual/libffi:0=
306 - virtual/libintl:0=
307 - dev-libs/expat:0=
308 - !libressl? ( dev-libs/openssl:0=[-bindist] )
309 - libressl? ( dev-libs/libressl:0= )
310 - bzip2? ( app-arch/bzip2:0= )
311 - gdbm? ( sys-libs/gdbm:0= )
312 - ncurses? ( sys-libs/ncurses:0= )
313 - sqlite? ( dev-db/sqlite:3= )
314 - tk? (
315 - dev-lang/tk:0=
316 - dev-tcltk/tix:0=
317 - )
318 - !dev-python/pypy3-bin:0"
319 -DEPEND="${RDEPEND}
320 - low-memory? ( virtual/pypy )
321 - !low-memory? (
322 - || (
323 - virtual/pypy
324 - (
325 - dev-lang/python:2.7
326 - dev-python/pycparser[python_targets_python2_7(-),python_single_target_python2_7(+)]
327 - )
328 - )
329 - )"
330 -# doc? ( dev-python/sphinx )
331 -
332 -S="${WORKDIR}/${MY_P}-src"
333 -
334 -check_env() {
335 - if use low-memory; then
336 - CHECKREQS_MEMORY="1750M"
337 - use amd64 && CHECKREQS_MEMORY="3500M"
338 - else
339 - CHECKREQS_MEMORY="3G"
340 - use amd64 && CHECKREQS_MEMORY="6G"
341 - fi
342 -
343 - check-reqs_pkg_pretend
344 -}
345 -
346 -pkg_pretend() {
347 - [[ ${MERGE_TYPE} != binary ]] && check_env
348 -}
349 -
350 -pkg_setup() {
351 - if [[ ${MERGE_TYPE} != binary ]]; then
352 - check_env
353 -
354 - # unset to allow forcing pypy below :)
355 - use low-memory && local EPYTHON=
356 - if python_is_installed pypy && [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]]; then
357 - einfo "Using PyPy to perform the translation."
358 - local EPYTHON=pypy
359 - else
360 - einfo "Using ${EPYTHON:-python2} to perform the translation. Please note that upstream"
361 - einfo "recommends using PyPy for that. If you wish to do so, please install"
362 - einfo "virtual/pypy and ensure that EPYTHON variable is unset."
363 - fi
364 -
365 - python-any-r1_pkg_setup
366 - fi
367 -}
368 -
369 -src_prepare() {
370 - eapply "${FILESDIR}/4.0.0-gentoo-path.patch"
371 - eapply "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
372 - eapply "${FILESDIR}"/5.9.0-shared-lib.patch # 517002
373 -
374 - sed -e "s^@EPREFIX@^${EPREFIX}^" \
375 - -e "s^@libdir@^$(get_libdir)^" \
376 - -i lib-python/3/distutils/command/install.py || die
377 -
378 - # apply CPython stdlib patches
379 - pushd lib-python/3 > /dev/null || die
380 - eapply "${FILESDIR}"/5.8.0_all_distutils_cxx.patch
381 - eapply "${FILESDIR}"/python-3.5-distutils-OO-build.patch
382 - popd > /dev/null || die
383 -
384 - eapply_user
385 -}
386 -
387 -src_configure() {
388 - tc-export CC
389 -
390 - local args=(
391 - --shared
392 - $(usex jit -Ojit -O2)
393 - $(usex sandbox --sandbox '')
394 -
395 - --jit-backend=auto
396 -
397 - pypy/goal/targetpypystandalone
398 - )
399 -
400 - # Avoid linking against libraries disabled by use flags
401 - local opts=(
402 - bzip2:bz2
403 - ncurses:_minimal_curses
404 - )
405 -
406 - local opt
407 - for opt in "${opts[@]}"; do
408 - local flag=${opt%:*}
409 - local mod=${opt#*:}
410 -
411 - args+=(
412 - $(usex ${flag} --withmod --withoutmod)-${mod}
413 - )
414 - done
415 -
416 - local interp=( "${PYTHON}" )
417 - if use low-memory; then
418 - interp=( env PYPY_GC_MAX_DELTA=200MB
419 - "${PYTHON}" --jit loop_longevity=300 )
420 - fi
421 -
422 - # translate into the C sources
423 - # we're going to make them ourselves since otherwise pypy does not
424 - # free up the unneeded memory before spawning the compiler
425 - set -- "${interp[@]}" rpython/bin/rpython --batch --source "${args[@]}"
426 - echo -e "\033[1m${@}\033[0m"
427 - "${@}" || die "translation failed"
428 -}
429 -
430 -src_compile() {
431 - emake -C "${T}"/usession*-0/testing_1
432 -
433 - # copy back to make sys.prefix happy
434 - cp -p "${T}"/usession*-0/testing_1/{pypy3-c,libpypy3-c.so} . || die
435 - pax-mark m pypy3-c libpypy3-c.so
436 -
437 - #use doc && emake -C pypy/doc html
438 -
439 - einfo "Generating caches and CFFI modules ..."
440 -
441 - # Generate Grammar and PatternGrammar pickles.
442 - ./pypy3-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
443 - || die "Generation of Grammar and PatternGrammar pickles failed"
444 -
445 - # Generate cffi modules
446 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
447 -#cffi_build_scripts = {
448 -# "sqlite3": "_sqlite3_build.py",
449 -# "audioop": "_audioop_build.py",
450 -# "tk": "_tkinter/tklib_build.py",
451 -# "curses": "_curses_build.py" if sys.platform != "win32" else None,
452 -# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
453 -# "_gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
454 -# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
455 -# "resource": "_resource_build.py" if sys.platform != "win32" else None,
456 -# "lzma": "_lzma_build.py",
457 -# "_decimal": "_decimal_build.py",
458 -# "ssl": "_ssl_build.py",
459 - cffi_targets=( audioop syslog pwdgrp resource lzma decimal ssl )
460 - use gdbm && cffi_targets+=( gdbm )
461 - use ncurses && cffi_targets+=( curses )
462 - use sqlite && cffi_targets+=( sqlite3 )
463 - use tk && cffi_targets+=( tkinter/tklib )
464 -
465 - local t
466 - # all modules except tkinter output to .
467 - # tkinter outputs to the correct dir ...
468 - cd lib_pypy || die
469 - for t in "${cffi_targets[@]}"; do
470 - # tkinter doesn't work via -m
471 - ../pypy3-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
472 - done
473 -
474 - # Cleanup temporary objects
475 - find -name "_cffi_*.[co]" -delete || die
476 - find -type d -empty -delete || die
477 -}
478 -
479 -src_test() {
480 - # (unset)
481 - local -x PYTHONDONTWRITEBYTECODE
482 -
483 - # Test runner requires Python 2 too. However, it spawns PyPy3
484 - # internally so that we end up testing the correct interpreter.
485 - "${PYTHON}" ./pypy/test_all.py --pypy=./pypy3-c lib-python || die
486 -}
487 -
488 -src_install() {
489 - local dest=/usr/$(get_libdir)/pypy3
490 - einfo "Installing PyPy ..."
491 - exeinto "${dest}"
492 - doexe pypy3-c libpypy3-c.so
493 - pax-mark m "${ED%/}${dest}/pypy3-c" "${ED%/}${dest}/libpypy3-c.so"
494 - insinto "${dest}"
495 - # preserve mtimes to avoid obsoleting caches
496 - insopts -p
497 - doins -r include lib_pypy lib-python
498 - dosym ../$(get_libdir)/pypy3/pypy3-c /usr/bin/pypy3
499 - dodoc README.rst
500 -
501 - if ! use gdbm; then
502 - rm -r "${ED%/}${dest}"/lib_pypy/_gdbm* || die
503 - fi
504 - if ! use sqlite; then
505 - rm -r "${ED%/}${dest}"/lib-python/*3/sqlite3 \
506 - "${ED%/}${dest}"/lib_pypy/_sqlite3* \
507 - "${ED%/}${dest}"/lib-python/*3/test/test_sqlite.py || die
508 - fi
509 - if ! use tk; then
510 - rm -r "${ED%/}${dest}"/lib-python/*3/{idlelib,tkinter} \
511 - "${ED%/}${dest}"/lib_pypy/_tkinter \
512 - "${ED%/}${dest}"/lib-python/*3/test/test_{tcl,tk,ttk*}.py || die
513 - fi
514 -
515 - # Install docs
516 - #use doc && dohtml -r pypy/doc/_build/html/
517 -
518 - einfo "Generating caches and byte-compiling ..."
519 -
520 - local -x PYTHON=${ED%/}${dest}/pypy3-c
521 - # we can't use eclass function since PyPy is dumb and always gives
522 - # paths relative to the interpreter
523 - local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy3/site-packages
524 - python_export pypy3 EPYTHON
525 -
526 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
527 - python_domodule epython.py
528 -
529 - einfo "Byte-compiling Python standard library..."
530 -
531 - # compile the installed modules
532 - python_optimize "${ED%/}${dest}"
533 -}