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, 20 Feb 2022 14:19:29
Message-Id: 1645366754.5e2ac97918c231f7764a86fca81d433ef7533999.mgorny@gentoo
1 commit: 5e2ac97918c231f7764a86fca81d433ef7533999
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 20 14:15:44 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 14:19:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e2ac979
7
8 dev-python/pypy3: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pypy3/Manifest | 6 -
13 dev-python/pypy3/pypy3-7.3.8_rc1_p1.ebuild | 183 -----------------------------
14 dev-python/pypy3/pypy3-7.3.8_rc1_p2.ebuild | 183 -----------------------------
15 dev-python/pypy3/pypy3-7.3.8_rc1_p3.ebuild | 183 -----------------------------
16 dev-python/pypy3/pypy3-7.3.8_rc2.ebuild | 183 -----------------------------
17 5 files changed, 738 deletions(-)
18
19 diff --git a/dev-python/pypy3/Manifest b/dev-python/pypy3/Manifest
20 index fb2091d3ad10..782c1546b167 100644
21 --- a/dev-python/pypy3/Manifest
22 +++ b/dev-python/pypy3/Manifest
23 @@ -1,10 +1,4 @@
24 DIST pypy3.8-gentoo-patches-7.3.7.tar.xz 4396 BLAKE2B adc33a02ada4d22eae0484292ec6cc295805d9f254b7a9110c622628aa40011621a1833ca62d3251e4e5056c406f648e7ad0439bd60e77c38808dd9df46973a5 SHA512 1cda8467de2d749d98fa20d7d200b5f96dae0ca68cf44a054d03f3f148bc3946ba1f1c474ac0336560f79c78b3eddcd4ba24386e83de283c83475b8e4b75bdf8
25 DIST pypy3.8-v7.3.7-src.tar.bz2 24375444 BLAKE2B 44fe19ee63d95243c499ecb0b84e77873c73da93320b1e028a5c6c4b167441d223812dc66b16e070308cba48c4d8774738f827319cce9d1769b3f4346e15487c SHA512 9e6701cc441d5535968656cfb0cfa9076c364f9ba32bc6f0ef64f06ab343281e2458dbe88791c0e02401457fbf80d367f397fc904f6146bff68e04a15e05fda2
26 DIST pypy3.9-gentoo-patches-7.3.8.tar.xz 1568 BLAKE2B 0011188de7b5757964bd13c49d5995a656a721acd54e1d77f7e77fac7420a2a56ca75eb42709e2304a771fa69c982fc6901e9fc9580ab8e8b35e7bb8b0cc83a6 SHA512 1064e987b7233fc55f94bd49aeeab9a9fd9322e90798439ad9a4c35020ca923fe0670e47406ab180a6f8e7afd65d03be23427d4fa43befa3c0ce172028e1a09f
27 -DIST pypy3.9-gentoo-patches-7.3.8rc1_p1.tar.xz 1720 BLAKE2B 2d72eca8525104753f67db2c55ea799c24dee1969b484f1d1cb7fb3295924a9980aa84cdf1a6045ee463a64f68893dfb4e0f161fe4e3f210a5976283a09e1e48 SHA512 1c87301fad10764b754bc852cf7216b58792a2583026bef05e6ea278ea941486cffd36eec810af2e56f99c8ed9f56e7f08b42d8bc03bd3c5d55b044411da0beb
28 -DIST pypy3.9-gentoo-patches-7.3.8rc1_p2.tar.xz 7252 BLAKE2B 9d7b908f8506053600694dd9e00aac4cbed9a999935a3468309103070930972751b0838eb5fc15063895f3090815aeef7e7603d5f9e21a99b65f658ccb1592e0 SHA512 c699d11e3342ef0f2ee3a5ccbb6a18a6f7ecd5513b553f1c2b0cb0aea59992603c360cf9b995a0146e08f43ff71483d94bf117a5cddbe7e83b0fadc9eafd03b7
29 -DIST pypy3.9-gentoo-patches-7.3.8rc1_p3.tar.xz 7960 BLAKE2B 195e2f581e16f97701848efa5fd11d7852ffedfd4c2a0d3b0948f7b43440a3b45823c0a38af04dad68789a9cc0f9f023d3d5e4754d8f7469c40a4717fd3276cb SHA512 539bf4785722ba1ef5e13c9705ba9cbc60dff12190b0cc5fd8253bda51304c399aefe3b725685a7a98a9d798c3561f28351ef1087b5bc26377ffb485b588497e
30 -DIST pypy3.9-gentoo-patches-7.3.8rc2.tar.xz 1568 BLAKE2B 983ccd0d7482a4542cf2cc7d66b5c515051cd9bdcc43b56ca932ddd7fe15b13d097f0257108fb82ef2619f468fcaa2e549be0ae115ac2635e867206f1d0a4431 SHA512 a8a9e477563d5bb64c7f1f401645f783f66e0a338e6ae44f4e5a5c11152ebca1232f0ce14270f6087b855137f00ba2dc57bfcccb4935eb5fb50c34e7791bb3a7
31 DIST pypy3.9-v7.3.8-src.tar.bz2 26277823 BLAKE2B 343fa4a57b69936a586acb036506e25c8de3a9761eb6622ef7266c136a1dc977cabc23969917bc2369fd73b1ae6fef731d81536179107f2d731352e6f5387bf9 SHA512 aed018738af7a225f516ec37d059d539f486d9dd427fe000805147b197f496d5fcb0387e47008524753ad18224aebeb1e68f9e2093acbe37468e02bff92f7126
32 -DIST pypy3.9-v7.3.8rc1-src.tar.bz2 26254113 BLAKE2B fb4eca88080eee91d4ec8886abb484de11997c73d5b60c5f9acab7cd7b8cbc9d80190608bb905d82b6bcd1bbf602b6afc53257c9263458fc51a2b5f32510a164 SHA512 d1b1942fbacc7f8d642c85ceb4c4c9796e73bd5836615e2db81f4ddabf9e4f94c230f2d946ea9c49b642d41304aeed3906df1931a52ec40c56d14f1028139978
33 -DIST pypy3.9-v7.3.8rc2-src.tar.bz2 26277719 BLAKE2B 7853d30983e43e20ee90af9a380c0c368c7d4cc0fd58c7e4ff3db80bffabdfefb7cb31a2d39e00f99ff0f34f23be77b9d7302926baa30a348c1ffde52f641937 SHA512 40fc0dd45bf24bc9a1bfa259bce11ee706ac73dd29f66a3e2a16bb9ca5c6683d4aedaf21394875ab3facb31eb65f4d497eaa3c10ef4394251ecb4b4a85511197
34
35 diff --git a/dev-python/pypy3/pypy3-7.3.8_rc1_p1.ebuild b/dev-python/pypy3/pypy3-7.3.8_rc1_p1.ebuild
36 deleted file mode 100644
37 index a08c44184921..000000000000
38 --- a/dev-python/pypy3/pypy3-7.3.8_rc1_p1.ebuild
39 +++ /dev/null
40 @@ -1,183 +0,0 @@
41 -# Copyright 1999-2022 Gentoo Authors
42 -# Distributed under the terms of the GNU General Public License v2
43 -
44 -EAPI=8
45 -
46 -PYTHON_COMPAT=( python2_7 )
47 -inherit pax-utils python-any-r1 toolchain-funcs
48 -
49 -PYPY_PV=${PV%_p*}
50 -MY_P=pypy3.9-v${PYPY_PV/_rc/rc}
51 -PATCHSET="pypy3.9-gentoo-patches-${PV/_rc/rc}"
52 -
53 -DESCRIPTION="A fast, compliant alternative implementation of the Python (3.9) language"
54 -HOMEPAGE="https://www.pypy.org/"
55 -SRC_URI="https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2
56 - https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz"
57 -S="${WORKDIR}/${MY_P}-src"
58 -
59 -LICENSE="MIT"
60 -# pypy3 -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))'
61 -# also check pypy/interpreter/pycode.py -> pypy_incremental_magic
62 -SLOT="0/pypy39-pp73"
63 -KEYWORDS=""
64 -IUSE="bzip2 gdbm +jit ncurses sqlite test tk"
65 -# many tests are failing upstream
66 -# see https://buildbot.pypy.org/summary?branch=py3.9
67 -RESTRICT="test"
68 -
69 -RDEPEND="
70 - || (
71 - >=dev-python/pypy3-exe-${PYPY_PV}:3.9-${PYPY_PV}[bzip2?,ncurses?]
72 - >=dev-python/pypy3-exe-bin-${PYPY_PV}:3.9-${PYPY_PV}
73 - )
74 - dev-lang/python-exec[python_targets_pypy3(-)]
75 - dev-libs/openssl:0=
76 - gdbm? ( sys-libs/gdbm:0= )
77 - sqlite? ( dev-db/sqlite:3= )
78 - tk? (
79 - dev-lang/tk:0=
80 - dev-tcltk/tix:0=
81 - )
82 - !<dev-python/pypy3-bin-7.3.0:0"
83 -DEPEND="${RDEPEND}
84 - test? (
85 - ${PYTHON_DEPS}
86 - !!dev-python/pytest-forked
87 - )"
88 -
89 -pkg_setup() {
90 - use test && python-any-r1_pkg_setup
91 -}
92 -
93 -src_prepare() {
94 - local PATCHES=(
95 - "${WORKDIR}/${PATCHSET}"
96 - )
97 - default
98 -
99 - eapply_user
100 -}
101 -
102 -src_configure() {
103 - tc-export CC
104 -}
105 -
106 -src_compile() {
107 - mkdir bin || die
108 - # switch to the layout expected for cffi module builds
109 - mkdir include/pypy3.9 || die
110 - # copy over to make sys.prefix happy
111 - cp -p "${BROOT}"/usr/bin/pypy3.9-c-${PYPY_PV} pypy3.9-c || die
112 - cp -p "${BROOT}"/usr/include/pypy3.9/${PYPY_PV}/* include/pypy3.9/ || die
113 - # (not installed by pypy-exe)
114 - rm pypy/module/cpyext/include/_numpypy/numpy/README || die
115 - mv pypy/module/cpyext/include/* include/pypy3.9/ || die
116 - mv pypy/module/cpyext/parse/*.h include/pypy3.9/ || die
117 - pax-mark m pypy3.9-c
118 -
119 - # verify the subslot
120 - local soabi=$(./pypy3.9-c -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))')
121 - [[ ${soabi} == ${SLOT#*/} ]] || die "update subslot to ${soabi}"
122 -
123 - einfo "Generating caches and CFFI modules ..."
124 -
125 - # Generate Grammar and PatternGrammar pickles.
126 - ./pypy3.9-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
127 - || die "Generation of Grammar and PatternGrammar pickles failed"
128 -
129 - # Generate cffi modules
130 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
131 - # (NB: we build CFFI modules first to avoid error log when importing
132 - # build_cffi_imports).
133 - cffi_targets=( pypy_util blake2/_blake2 sha3/_sha3 ssl
134 - audioop syslog pwdgrp resource lzma posixshmem )
135 - use gdbm && cffi_targets+=( gdbm )
136 - use ncurses && cffi_targets+=( curses )
137 - use sqlite && cffi_targets+=( sqlite3 )
138 - use tk && cffi_targets+=( tkinter/tklib )
139 -
140 - local t
141 - # all modules except tkinter output to .
142 - # tkinter outputs to the correct dir ...
143 - cd lib_pypy || die
144 - for t in "${cffi_targets[@]}"; do
145 - # tkinter doesn't work via -m
146 - ../pypy3.9-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
147 - done
148 -
149 - # Verify that CFFI module list is up-to-date
150 - local expected_cksum=63d4659f
151 - local local_cksum=$(../pypy3.9-c -c '
152 -from pypy_tools.build_cffi_imports import cffi_build_scripts as x;
153 -import binascii, json;
154 -print("%08x" % (binascii.crc32(json.dumps(x).encode()),))')
155 - if [[ ${local_cksum} != ${expected_cksum} ]]; then
156 - die "Please verify cffi_targets and update checksum to ${local_cksum}"
157 - fi
158 -
159 - # Cleanup temporary objects
160 - find -name "*_cffi.[co]" -delete || die
161 - find -type d -empty -delete || die
162 -}
163 -
164 -src_test() {
165 - # (unset)
166 - local -x PYTHONDONTWRITEBYTECODE=
167 - local -x COLUMNS=80
168 -
169 - # Test runner requires Python 2 too. However, it spawns PyPy3
170 - # internally so that we end up testing the correct interpreter.
171 - # (--deselect for failing doctests)
172 - "${EPYTHON}" ./pypy/test_all.py --pypy=./pypy3.9-c -vv lib-python || die
173 -}
174 -
175 -src_install() {
176 - einfo "Installing PyPy ..."
177 - dodir /usr/bin
178 - dosym pypy3.9-c-${PYPY_PV} /usr/bin/pypy3.9
179 - dosym pypy3.9 /usr/bin/pypy3
180 - insinto /usr/lib/pypy3.9
181 - # preserve mtimes to avoid obsoleting caches
182 - insopts -p
183 - doins -r lib-python/3/. lib_pypy/.
184 - insinto /usr/include
185 - doins -r include/pypy3.9
186 -
187 - # replace copied headers with symlinks
188 - for x in "${BROOT}"/usr/include/pypy3.9/${PYPY_PV}/*; do
189 - dosym "${PYPY_PV}/${x##*/}" "/usr/include/pypy3.9/${x##*/}"
190 - done
191 -
192 - dodoc README.rst
193 -
194 - local dest=/usr/lib/pypy3.9
195 - if ! use gdbm; then
196 - rm -r "${ED}${dest}"/_gdbm* || die
197 - fi
198 - if ! use sqlite; then
199 - rm -r "${ED}${dest}"/sqlite3 \
200 - "${ED}${dest}"/_sqlite3* \
201 - "${ED}${dest}"/test/test_sqlite.py || die
202 - fi
203 - if ! use tk; then
204 - rm -r "${ED}${dest}"/{idlelib,tkinter} \
205 - "${ED}${dest}"/_tkinter \
206 - "${ED}${dest}"/test/test_{tcl,tk,ttk*}.py || die
207 - fi
208 -
209 - local -x EPYTHON=pypy3
210 - local -x PYTHON=${ED}/usr/bin/pypy3.9-c-${PYPY_PV}
211 - # temporarily copy to build tree to facilitate module builds
212 - cp -p "${BROOT}/usr/bin/pypy3.9-c-${PYPY_PV}" "${PYTHON}" || die
213 -
214 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
215 - python_moduleinto "${dest}"/site-packages
216 - python_domodule epython.py
217 -
218 - einfo "Byte-compiling Python standard library..."
219 - python_optimize "${ED}${dest}"
220 -
221 - # remove to avoid collisions
222 - rm "${PYTHON}" || die
223 -}
224
225 diff --git a/dev-python/pypy3/pypy3-7.3.8_rc1_p2.ebuild b/dev-python/pypy3/pypy3-7.3.8_rc1_p2.ebuild
226 deleted file mode 100644
227 index a08c44184921..000000000000
228 --- a/dev-python/pypy3/pypy3-7.3.8_rc1_p2.ebuild
229 +++ /dev/null
230 @@ -1,183 +0,0 @@
231 -# Copyright 1999-2022 Gentoo Authors
232 -# Distributed under the terms of the GNU General Public License v2
233 -
234 -EAPI=8
235 -
236 -PYTHON_COMPAT=( python2_7 )
237 -inherit pax-utils python-any-r1 toolchain-funcs
238 -
239 -PYPY_PV=${PV%_p*}
240 -MY_P=pypy3.9-v${PYPY_PV/_rc/rc}
241 -PATCHSET="pypy3.9-gentoo-patches-${PV/_rc/rc}"
242 -
243 -DESCRIPTION="A fast, compliant alternative implementation of the Python (3.9) language"
244 -HOMEPAGE="https://www.pypy.org/"
245 -SRC_URI="https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2
246 - https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz"
247 -S="${WORKDIR}/${MY_P}-src"
248 -
249 -LICENSE="MIT"
250 -# pypy3 -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))'
251 -# also check pypy/interpreter/pycode.py -> pypy_incremental_magic
252 -SLOT="0/pypy39-pp73"
253 -KEYWORDS=""
254 -IUSE="bzip2 gdbm +jit ncurses sqlite test tk"
255 -# many tests are failing upstream
256 -# see https://buildbot.pypy.org/summary?branch=py3.9
257 -RESTRICT="test"
258 -
259 -RDEPEND="
260 - || (
261 - >=dev-python/pypy3-exe-${PYPY_PV}:3.9-${PYPY_PV}[bzip2?,ncurses?]
262 - >=dev-python/pypy3-exe-bin-${PYPY_PV}:3.9-${PYPY_PV}
263 - )
264 - dev-lang/python-exec[python_targets_pypy3(-)]
265 - dev-libs/openssl:0=
266 - gdbm? ( sys-libs/gdbm:0= )
267 - sqlite? ( dev-db/sqlite:3= )
268 - tk? (
269 - dev-lang/tk:0=
270 - dev-tcltk/tix:0=
271 - )
272 - !<dev-python/pypy3-bin-7.3.0:0"
273 -DEPEND="${RDEPEND}
274 - test? (
275 - ${PYTHON_DEPS}
276 - !!dev-python/pytest-forked
277 - )"
278 -
279 -pkg_setup() {
280 - use test && python-any-r1_pkg_setup
281 -}
282 -
283 -src_prepare() {
284 - local PATCHES=(
285 - "${WORKDIR}/${PATCHSET}"
286 - )
287 - default
288 -
289 - eapply_user
290 -}
291 -
292 -src_configure() {
293 - tc-export CC
294 -}
295 -
296 -src_compile() {
297 - mkdir bin || die
298 - # switch to the layout expected for cffi module builds
299 - mkdir include/pypy3.9 || die
300 - # copy over to make sys.prefix happy
301 - cp -p "${BROOT}"/usr/bin/pypy3.9-c-${PYPY_PV} pypy3.9-c || die
302 - cp -p "${BROOT}"/usr/include/pypy3.9/${PYPY_PV}/* include/pypy3.9/ || die
303 - # (not installed by pypy-exe)
304 - rm pypy/module/cpyext/include/_numpypy/numpy/README || die
305 - mv pypy/module/cpyext/include/* include/pypy3.9/ || die
306 - mv pypy/module/cpyext/parse/*.h include/pypy3.9/ || die
307 - pax-mark m pypy3.9-c
308 -
309 - # verify the subslot
310 - local soabi=$(./pypy3.9-c -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))')
311 - [[ ${soabi} == ${SLOT#*/} ]] || die "update subslot to ${soabi}"
312 -
313 - einfo "Generating caches and CFFI modules ..."
314 -
315 - # Generate Grammar and PatternGrammar pickles.
316 - ./pypy3.9-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
317 - || die "Generation of Grammar and PatternGrammar pickles failed"
318 -
319 - # Generate cffi modules
320 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
321 - # (NB: we build CFFI modules first to avoid error log when importing
322 - # build_cffi_imports).
323 - cffi_targets=( pypy_util blake2/_blake2 sha3/_sha3 ssl
324 - audioop syslog pwdgrp resource lzma posixshmem )
325 - use gdbm && cffi_targets+=( gdbm )
326 - use ncurses && cffi_targets+=( curses )
327 - use sqlite && cffi_targets+=( sqlite3 )
328 - use tk && cffi_targets+=( tkinter/tklib )
329 -
330 - local t
331 - # all modules except tkinter output to .
332 - # tkinter outputs to the correct dir ...
333 - cd lib_pypy || die
334 - for t in "${cffi_targets[@]}"; do
335 - # tkinter doesn't work via -m
336 - ../pypy3.9-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
337 - done
338 -
339 - # Verify that CFFI module list is up-to-date
340 - local expected_cksum=63d4659f
341 - local local_cksum=$(../pypy3.9-c -c '
342 -from pypy_tools.build_cffi_imports import cffi_build_scripts as x;
343 -import binascii, json;
344 -print("%08x" % (binascii.crc32(json.dumps(x).encode()),))')
345 - if [[ ${local_cksum} != ${expected_cksum} ]]; then
346 - die "Please verify cffi_targets and update checksum to ${local_cksum}"
347 - fi
348 -
349 - # Cleanup temporary objects
350 - find -name "*_cffi.[co]" -delete || die
351 - find -type d -empty -delete || die
352 -}
353 -
354 -src_test() {
355 - # (unset)
356 - local -x PYTHONDONTWRITEBYTECODE=
357 - local -x COLUMNS=80
358 -
359 - # Test runner requires Python 2 too. However, it spawns PyPy3
360 - # internally so that we end up testing the correct interpreter.
361 - # (--deselect for failing doctests)
362 - "${EPYTHON}" ./pypy/test_all.py --pypy=./pypy3.9-c -vv lib-python || die
363 -}
364 -
365 -src_install() {
366 - einfo "Installing PyPy ..."
367 - dodir /usr/bin
368 - dosym pypy3.9-c-${PYPY_PV} /usr/bin/pypy3.9
369 - dosym pypy3.9 /usr/bin/pypy3
370 - insinto /usr/lib/pypy3.9
371 - # preserve mtimes to avoid obsoleting caches
372 - insopts -p
373 - doins -r lib-python/3/. lib_pypy/.
374 - insinto /usr/include
375 - doins -r include/pypy3.9
376 -
377 - # replace copied headers with symlinks
378 - for x in "${BROOT}"/usr/include/pypy3.9/${PYPY_PV}/*; do
379 - dosym "${PYPY_PV}/${x##*/}" "/usr/include/pypy3.9/${x##*/}"
380 - done
381 -
382 - dodoc README.rst
383 -
384 - local dest=/usr/lib/pypy3.9
385 - if ! use gdbm; then
386 - rm -r "${ED}${dest}"/_gdbm* || die
387 - fi
388 - if ! use sqlite; then
389 - rm -r "${ED}${dest}"/sqlite3 \
390 - "${ED}${dest}"/_sqlite3* \
391 - "${ED}${dest}"/test/test_sqlite.py || die
392 - fi
393 - if ! use tk; then
394 - rm -r "${ED}${dest}"/{idlelib,tkinter} \
395 - "${ED}${dest}"/_tkinter \
396 - "${ED}${dest}"/test/test_{tcl,tk,ttk*}.py || die
397 - fi
398 -
399 - local -x EPYTHON=pypy3
400 - local -x PYTHON=${ED}/usr/bin/pypy3.9-c-${PYPY_PV}
401 - # temporarily copy to build tree to facilitate module builds
402 - cp -p "${BROOT}/usr/bin/pypy3.9-c-${PYPY_PV}" "${PYTHON}" || die
403 -
404 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
405 - python_moduleinto "${dest}"/site-packages
406 - python_domodule epython.py
407 -
408 - einfo "Byte-compiling Python standard library..."
409 - python_optimize "${ED}${dest}"
410 -
411 - # remove to avoid collisions
412 - rm "${PYTHON}" || die
413 -}
414
415 diff --git a/dev-python/pypy3/pypy3-7.3.8_rc1_p3.ebuild b/dev-python/pypy3/pypy3-7.3.8_rc1_p3.ebuild
416 deleted file mode 100644
417 index a08c44184921..000000000000
418 --- a/dev-python/pypy3/pypy3-7.3.8_rc1_p3.ebuild
419 +++ /dev/null
420 @@ -1,183 +0,0 @@
421 -# Copyright 1999-2022 Gentoo Authors
422 -# Distributed under the terms of the GNU General Public License v2
423 -
424 -EAPI=8
425 -
426 -PYTHON_COMPAT=( python2_7 )
427 -inherit pax-utils python-any-r1 toolchain-funcs
428 -
429 -PYPY_PV=${PV%_p*}
430 -MY_P=pypy3.9-v${PYPY_PV/_rc/rc}
431 -PATCHSET="pypy3.9-gentoo-patches-${PV/_rc/rc}"
432 -
433 -DESCRIPTION="A fast, compliant alternative implementation of the Python (3.9) language"
434 -HOMEPAGE="https://www.pypy.org/"
435 -SRC_URI="https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2
436 - https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz"
437 -S="${WORKDIR}/${MY_P}-src"
438 -
439 -LICENSE="MIT"
440 -# pypy3 -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))'
441 -# also check pypy/interpreter/pycode.py -> pypy_incremental_magic
442 -SLOT="0/pypy39-pp73"
443 -KEYWORDS=""
444 -IUSE="bzip2 gdbm +jit ncurses sqlite test tk"
445 -# many tests are failing upstream
446 -# see https://buildbot.pypy.org/summary?branch=py3.9
447 -RESTRICT="test"
448 -
449 -RDEPEND="
450 - || (
451 - >=dev-python/pypy3-exe-${PYPY_PV}:3.9-${PYPY_PV}[bzip2?,ncurses?]
452 - >=dev-python/pypy3-exe-bin-${PYPY_PV}:3.9-${PYPY_PV}
453 - )
454 - dev-lang/python-exec[python_targets_pypy3(-)]
455 - dev-libs/openssl:0=
456 - gdbm? ( sys-libs/gdbm:0= )
457 - sqlite? ( dev-db/sqlite:3= )
458 - tk? (
459 - dev-lang/tk:0=
460 - dev-tcltk/tix:0=
461 - )
462 - !<dev-python/pypy3-bin-7.3.0:0"
463 -DEPEND="${RDEPEND}
464 - test? (
465 - ${PYTHON_DEPS}
466 - !!dev-python/pytest-forked
467 - )"
468 -
469 -pkg_setup() {
470 - use test && python-any-r1_pkg_setup
471 -}
472 -
473 -src_prepare() {
474 - local PATCHES=(
475 - "${WORKDIR}/${PATCHSET}"
476 - )
477 - default
478 -
479 - eapply_user
480 -}
481 -
482 -src_configure() {
483 - tc-export CC
484 -}
485 -
486 -src_compile() {
487 - mkdir bin || die
488 - # switch to the layout expected for cffi module builds
489 - mkdir include/pypy3.9 || die
490 - # copy over to make sys.prefix happy
491 - cp -p "${BROOT}"/usr/bin/pypy3.9-c-${PYPY_PV} pypy3.9-c || die
492 - cp -p "${BROOT}"/usr/include/pypy3.9/${PYPY_PV}/* include/pypy3.9/ || die
493 - # (not installed by pypy-exe)
494 - rm pypy/module/cpyext/include/_numpypy/numpy/README || die
495 - mv pypy/module/cpyext/include/* include/pypy3.9/ || die
496 - mv pypy/module/cpyext/parse/*.h include/pypy3.9/ || die
497 - pax-mark m pypy3.9-c
498 -
499 - # verify the subslot
500 - local soabi=$(./pypy3.9-c -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))')
501 - [[ ${soabi} == ${SLOT#*/} ]] || die "update subslot to ${soabi}"
502 -
503 - einfo "Generating caches and CFFI modules ..."
504 -
505 - # Generate Grammar and PatternGrammar pickles.
506 - ./pypy3.9-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
507 - || die "Generation of Grammar and PatternGrammar pickles failed"
508 -
509 - # Generate cffi modules
510 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
511 - # (NB: we build CFFI modules first to avoid error log when importing
512 - # build_cffi_imports).
513 - cffi_targets=( pypy_util blake2/_blake2 sha3/_sha3 ssl
514 - audioop syslog pwdgrp resource lzma posixshmem )
515 - use gdbm && cffi_targets+=( gdbm )
516 - use ncurses && cffi_targets+=( curses )
517 - use sqlite && cffi_targets+=( sqlite3 )
518 - use tk && cffi_targets+=( tkinter/tklib )
519 -
520 - local t
521 - # all modules except tkinter output to .
522 - # tkinter outputs to the correct dir ...
523 - cd lib_pypy || die
524 - for t in "${cffi_targets[@]}"; do
525 - # tkinter doesn't work via -m
526 - ../pypy3.9-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
527 - done
528 -
529 - # Verify that CFFI module list is up-to-date
530 - local expected_cksum=63d4659f
531 - local local_cksum=$(../pypy3.9-c -c '
532 -from pypy_tools.build_cffi_imports import cffi_build_scripts as x;
533 -import binascii, json;
534 -print("%08x" % (binascii.crc32(json.dumps(x).encode()),))')
535 - if [[ ${local_cksum} != ${expected_cksum} ]]; then
536 - die "Please verify cffi_targets and update checksum to ${local_cksum}"
537 - fi
538 -
539 - # Cleanup temporary objects
540 - find -name "*_cffi.[co]" -delete || die
541 - find -type d -empty -delete || die
542 -}
543 -
544 -src_test() {
545 - # (unset)
546 - local -x PYTHONDONTWRITEBYTECODE=
547 - local -x COLUMNS=80
548 -
549 - # Test runner requires Python 2 too. However, it spawns PyPy3
550 - # internally so that we end up testing the correct interpreter.
551 - # (--deselect for failing doctests)
552 - "${EPYTHON}" ./pypy/test_all.py --pypy=./pypy3.9-c -vv lib-python || die
553 -}
554 -
555 -src_install() {
556 - einfo "Installing PyPy ..."
557 - dodir /usr/bin
558 - dosym pypy3.9-c-${PYPY_PV} /usr/bin/pypy3.9
559 - dosym pypy3.9 /usr/bin/pypy3
560 - insinto /usr/lib/pypy3.9
561 - # preserve mtimes to avoid obsoleting caches
562 - insopts -p
563 - doins -r lib-python/3/. lib_pypy/.
564 - insinto /usr/include
565 - doins -r include/pypy3.9
566 -
567 - # replace copied headers with symlinks
568 - for x in "${BROOT}"/usr/include/pypy3.9/${PYPY_PV}/*; do
569 - dosym "${PYPY_PV}/${x##*/}" "/usr/include/pypy3.9/${x##*/}"
570 - done
571 -
572 - dodoc README.rst
573 -
574 - local dest=/usr/lib/pypy3.9
575 - if ! use gdbm; then
576 - rm -r "${ED}${dest}"/_gdbm* || die
577 - fi
578 - if ! use sqlite; then
579 - rm -r "${ED}${dest}"/sqlite3 \
580 - "${ED}${dest}"/_sqlite3* \
581 - "${ED}${dest}"/test/test_sqlite.py || die
582 - fi
583 - if ! use tk; then
584 - rm -r "${ED}${dest}"/{idlelib,tkinter} \
585 - "${ED}${dest}"/_tkinter \
586 - "${ED}${dest}"/test/test_{tcl,tk,ttk*}.py || die
587 - fi
588 -
589 - local -x EPYTHON=pypy3
590 - local -x PYTHON=${ED}/usr/bin/pypy3.9-c-${PYPY_PV}
591 - # temporarily copy to build tree to facilitate module builds
592 - cp -p "${BROOT}/usr/bin/pypy3.9-c-${PYPY_PV}" "${PYTHON}" || die
593 -
594 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
595 - python_moduleinto "${dest}"/site-packages
596 - python_domodule epython.py
597 -
598 - einfo "Byte-compiling Python standard library..."
599 - python_optimize "${ED}${dest}"
600 -
601 - # remove to avoid collisions
602 - rm "${PYTHON}" || die
603 -}
604
605 diff --git a/dev-python/pypy3/pypy3-7.3.8_rc2.ebuild b/dev-python/pypy3/pypy3-7.3.8_rc2.ebuild
606 deleted file mode 100644
607 index a08c44184921..000000000000
608 --- a/dev-python/pypy3/pypy3-7.3.8_rc2.ebuild
609 +++ /dev/null
610 @@ -1,183 +0,0 @@
611 -# Copyright 1999-2022 Gentoo Authors
612 -# Distributed under the terms of the GNU General Public License v2
613 -
614 -EAPI=8
615 -
616 -PYTHON_COMPAT=( python2_7 )
617 -inherit pax-utils python-any-r1 toolchain-funcs
618 -
619 -PYPY_PV=${PV%_p*}
620 -MY_P=pypy3.9-v${PYPY_PV/_rc/rc}
621 -PATCHSET="pypy3.9-gentoo-patches-${PV/_rc/rc}"
622 -
623 -DESCRIPTION="A fast, compliant alternative implementation of the Python (3.9) language"
624 -HOMEPAGE="https://www.pypy.org/"
625 -SRC_URI="https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2
626 - https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz"
627 -S="${WORKDIR}/${MY_P}-src"
628 -
629 -LICENSE="MIT"
630 -# pypy3 -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))'
631 -# also check pypy/interpreter/pycode.py -> pypy_incremental_magic
632 -SLOT="0/pypy39-pp73"
633 -KEYWORDS=""
634 -IUSE="bzip2 gdbm +jit ncurses sqlite test tk"
635 -# many tests are failing upstream
636 -# see https://buildbot.pypy.org/summary?branch=py3.9
637 -RESTRICT="test"
638 -
639 -RDEPEND="
640 - || (
641 - >=dev-python/pypy3-exe-${PYPY_PV}:3.9-${PYPY_PV}[bzip2?,ncurses?]
642 - >=dev-python/pypy3-exe-bin-${PYPY_PV}:3.9-${PYPY_PV}
643 - )
644 - dev-lang/python-exec[python_targets_pypy3(-)]
645 - dev-libs/openssl:0=
646 - gdbm? ( sys-libs/gdbm:0= )
647 - sqlite? ( dev-db/sqlite:3= )
648 - tk? (
649 - dev-lang/tk:0=
650 - dev-tcltk/tix:0=
651 - )
652 - !<dev-python/pypy3-bin-7.3.0:0"
653 -DEPEND="${RDEPEND}
654 - test? (
655 - ${PYTHON_DEPS}
656 - !!dev-python/pytest-forked
657 - )"
658 -
659 -pkg_setup() {
660 - use test && python-any-r1_pkg_setup
661 -}
662 -
663 -src_prepare() {
664 - local PATCHES=(
665 - "${WORKDIR}/${PATCHSET}"
666 - )
667 - default
668 -
669 - eapply_user
670 -}
671 -
672 -src_configure() {
673 - tc-export CC
674 -}
675 -
676 -src_compile() {
677 - mkdir bin || die
678 - # switch to the layout expected for cffi module builds
679 - mkdir include/pypy3.9 || die
680 - # copy over to make sys.prefix happy
681 - cp -p "${BROOT}"/usr/bin/pypy3.9-c-${PYPY_PV} pypy3.9-c || die
682 - cp -p "${BROOT}"/usr/include/pypy3.9/${PYPY_PV}/* include/pypy3.9/ || die
683 - # (not installed by pypy-exe)
684 - rm pypy/module/cpyext/include/_numpypy/numpy/README || die
685 - mv pypy/module/cpyext/include/* include/pypy3.9/ || die
686 - mv pypy/module/cpyext/parse/*.h include/pypy3.9/ || die
687 - pax-mark m pypy3.9-c
688 -
689 - # verify the subslot
690 - local soabi=$(./pypy3.9-c -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))')
691 - [[ ${soabi} == ${SLOT#*/} ]] || die "update subslot to ${soabi}"
692 -
693 - einfo "Generating caches and CFFI modules ..."
694 -
695 - # Generate Grammar and PatternGrammar pickles.
696 - ./pypy3.9-c -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
697 - || die "Generation of Grammar and PatternGrammar pickles failed"
698 -
699 - # Generate cffi modules
700 - # Please keep in sync with pypy/tool/build_cffi_imports.py!
701 - # (NB: we build CFFI modules first to avoid error log when importing
702 - # build_cffi_imports).
703 - cffi_targets=( pypy_util blake2/_blake2 sha3/_sha3 ssl
704 - audioop syslog pwdgrp resource lzma posixshmem )
705 - use gdbm && cffi_targets+=( gdbm )
706 - use ncurses && cffi_targets+=( curses )
707 - use sqlite && cffi_targets+=( sqlite3 )
708 - use tk && cffi_targets+=( tkinter/tklib )
709 -
710 - local t
711 - # all modules except tkinter output to .
712 - # tkinter outputs to the correct dir ...
713 - cd lib_pypy || die
714 - for t in "${cffi_targets[@]}"; do
715 - # tkinter doesn't work via -m
716 - ../pypy3.9-c "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
717 - done
718 -
719 - # Verify that CFFI module list is up-to-date
720 - local expected_cksum=63d4659f
721 - local local_cksum=$(../pypy3.9-c -c '
722 -from pypy_tools.build_cffi_imports import cffi_build_scripts as x;
723 -import binascii, json;
724 -print("%08x" % (binascii.crc32(json.dumps(x).encode()),))')
725 - if [[ ${local_cksum} != ${expected_cksum} ]]; then
726 - die "Please verify cffi_targets and update checksum to ${local_cksum}"
727 - fi
728 -
729 - # Cleanup temporary objects
730 - find -name "*_cffi.[co]" -delete || die
731 - find -type d -empty -delete || die
732 -}
733 -
734 -src_test() {
735 - # (unset)
736 - local -x PYTHONDONTWRITEBYTECODE=
737 - local -x COLUMNS=80
738 -
739 - # Test runner requires Python 2 too. However, it spawns PyPy3
740 - # internally so that we end up testing the correct interpreter.
741 - # (--deselect for failing doctests)
742 - "${EPYTHON}" ./pypy/test_all.py --pypy=./pypy3.9-c -vv lib-python || die
743 -}
744 -
745 -src_install() {
746 - einfo "Installing PyPy ..."
747 - dodir /usr/bin
748 - dosym pypy3.9-c-${PYPY_PV} /usr/bin/pypy3.9
749 - dosym pypy3.9 /usr/bin/pypy3
750 - insinto /usr/lib/pypy3.9
751 - # preserve mtimes to avoid obsoleting caches
752 - insopts -p
753 - doins -r lib-python/3/. lib_pypy/.
754 - insinto /usr/include
755 - doins -r include/pypy3.9
756 -
757 - # replace copied headers with symlinks
758 - for x in "${BROOT}"/usr/include/pypy3.9/${PYPY_PV}/*; do
759 - dosym "${PYPY_PV}/${x##*/}" "/usr/include/pypy3.9/${x##*/}"
760 - done
761 -
762 - dodoc README.rst
763 -
764 - local dest=/usr/lib/pypy3.9
765 - if ! use gdbm; then
766 - rm -r "${ED}${dest}"/_gdbm* || die
767 - fi
768 - if ! use sqlite; then
769 - rm -r "${ED}${dest}"/sqlite3 \
770 - "${ED}${dest}"/_sqlite3* \
771 - "${ED}${dest}"/test/test_sqlite.py || die
772 - fi
773 - if ! use tk; then
774 - rm -r "${ED}${dest}"/{idlelib,tkinter} \
775 - "${ED}${dest}"/_tkinter \
776 - "${ED}${dest}"/test/test_{tcl,tk,ttk*}.py || die
777 - fi
778 -
779 - local -x EPYTHON=pypy3
780 - local -x PYTHON=${ED}/usr/bin/pypy3.9-c-${PYPY_PV}
781 - # temporarily copy to build tree to facilitate module builds
782 - cp -p "${BROOT}/usr/bin/pypy3.9-c-${PYPY_PV}" "${PYTHON}" || die
783 -
784 - echo "EPYTHON='${EPYTHON}'" > epython.py || die
785 - python_moduleinto "${dest}"/site-packages
786 - python_domodule epython.py
787 -
788 - einfo "Byte-compiling Python standard library..."
789 - python_optimize "${ED}${dest}"
790 -
791 - # remove to avoid collisions
792 - rm "${PYTHON}" || die
793 -}