From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DDA8C158015 for ; Thu, 21 Dec 2023 04:16:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1892F2BC019; Thu, 21 Dec 2023 04:16:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F3ADD2BC019 for ; Thu, 21 Dec 2023 04:16:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 47858340C33 for ; Thu, 21 Dec 2023 04:16:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4DFFE1492 for ; Thu, 21 Dec 2023 04:16:32 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1703129248.8560f90b6217d20450db6d12841f924df086ee42.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pypy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pypy/pypy-7.3.13.ebuild X-VCS-Directories: dev-python/pypy/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8560f90b6217d20450db6d12841f924df086ee42 X-VCS-Branch: master Date: Thu, 21 Dec 2023 04:16:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e258ccd1-1b15-4669-880c-bc721141c68e X-Archives-Hash: ae25bfdd7b6ed5dce4590934f86c47f0 commit: 8560f90b6217d20450db6d12841f924df086ee42 Author: Eli Schwartz gmail com> AuthorDate: Mon Dec 18 07:25:12 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Dec 21 03:27:28 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8560f90b dev-python/pypy: inline python_optimize, restrict to valid files There's a bunch of testdata that isn't supposed to be compiled. The CPython build system automatically excludes it, but PyPy doesn't have a build system so we must do it manually. Signed-off-by: Eli Schwartz gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34349 Signed-off-by: Michał Górny gentoo.org> dev-python/pypy/pypy-7.3.13.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev-python/pypy/pypy-7.3.13.ebuild b/dev-python/pypy/pypy-7.3.13.ebuild index cefd623b2968..3b82197f2e0a 100644 --- a/dev-python/pypy/pypy-7.3.13.ebuild +++ b/dev-python/pypy/pypy-7.3.13.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit pax-utils python-utils-r1 +inherit pax-utils PYPY_PV=${PV%_p*} MY_P=pypy2.7-v${PYPY_PV/_} @@ -288,13 +288,14 @@ src_install() { dosym ../lib/pypy2.7/pypy-c /usr/bin/pypy dodoc README.rst - local -x EPYTHON=pypy local -x PYTHON=${ED}${dest}/pypy-c-${PYPY_PV} # temporarily copy to build tree to facilitate module builds cp -p "${BROOT}${dest}/pypy-c-${PYPY_PV}" "${PYTHON}" || die einfo "Byte-compiling Python standard library..." - python_optimize "${ED}${dest}" + "${PYTHON}" -m compileall \ + -x 'bad_coding|badsyntax|make_ssl_data|lib2to3/tests/data' \ + -q -f -d "${dest}" "${ED}/${dest}" || die # remove to avoid collisions rm "${PYTHON}" || die