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 6B10615808B for ; Fri, 16 Feb 2024 14:26:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9727AE29C6; Fri, 16 Feb 2024 14:26:00 +0000 (UTC) Received: from smtp.gentoo.org (mail.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7BA51E29C6 for ; Fri, 16 Feb 2024 14:26:00 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A029433BF29 for ; Fri, 16 Feb 2024 14:25:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DCE961132 for ; Fri, 16 Feb 2024 14:25:57 +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: <1708093555.6367dfa08fbd26ec86f94b6b28ed6f861f9fd85a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/python/metadata.xml dev-lang/python/python-3.13.0_alpha4.ebuild X-VCS-Directories: dev-lang/python/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6367dfa08fbd26ec86f94b6b28ed6f861f9fd85a X-VCS-Branch: master Date: Fri, 16 Feb 2024 14:25:57 +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: 79581c81-0f4c-41bc-825c-5c9b7e635d54 X-Archives-Hash: 61074f8ce3f3165ade9309cde14defa5 commit: 6367dfa08fbd26ec86f94b6b28ed6f861f9fd85a Author: Michał Górny gentoo org> AuthorDate: Fri Feb 16 14:25:14 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Feb 16 14:25:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6367dfa0 dev-lang/python: Add USE=jit to 3.13.0_alpha4 Signed-off-by: Michał Górny gentoo.org> dev-lang/python/metadata.xml | 3 +++ dev-lang/python/python-3.13.0_alpha4.ebuild | 18 +++++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/dev-lang/python/metadata.xml b/dev-lang/python/metadata.xml index 31350aebeb2b..22ce986e0676 100644 --- a/dev-lang/python/metadata.xml +++ b/dev-lang/python/metadata.xml @@ -14,6 +14,9 @@ to bootstrap pip and setuptools (if disabled, it will be only possible to use venv `--without-pip`) + + Enable experimental Just-In-Time compilation support. + Link readline extension against dev-libs/libedit instead of sys-libs/readline diff --git a/dev-lang/python/python-3.13.0_alpha4.ebuild b/dev-lang/python/python-3.13.0_alpha4.ebuild index 2cd791faab28..08b7d322bbbf 100644 --- a/dev-lang/python/python-3.13.0_alpha4.ebuild +++ b/dev-lang/python/python-3.13.0_alpha4.ebuild @@ -2,10 +2,13 @@ # Distributed under the terms of the GNU General Public License v2 EAPI="8" + +LLVM_COMPAT=( 16 ) +LLVM_OPTIONAL=1 WANT_LIBTOOL="none" -inherit autotools check-reqs flag-o-matic multiprocessing pax-utils -inherit python-utils-r1 toolchain-funcs verify-sig +inherit autotools check-reqs flag-o-matic llvm-r1 multiprocessing +inherit pax-utils python-utils-r1 toolchain-funcs verify-sig MY_PV=${PV/_alpha/a} MY_P="Python-${MY_PV%_p*}" @@ -29,9 +32,10 @@ S="${WORKDIR}/${MY_P}" LICENSE="PSF-2" SLOT="${PYVER}" IUSE=" - bluetooth build debug +ensurepip examples gdbm libedit + bluetooth build debug +ensurepip examples gdbm jit libedit +ncurses pgo +readline +sqlite +ssl test tk valgrind " +REQUIRED_USE="jit? ( ${LLVM_REQUIRED_USE} )" RESTRICT="!test? ( test )" # Do not add a dependency on dev-lang/python to this ebuild. @@ -83,6 +87,12 @@ BDEPEND=" dev-build/autoconf-archive app-alternatives/awk virtual/pkgconfig + jit? ( + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT} + sys-devel/llvm:${LLVM_SLOT} + ') + ) verify-sig? ( >=sec-keys/openpgp-keys-python-20221025 ) " RDEPEND+=" @@ -108,6 +118,7 @@ pkg_pretend() { } pkg_setup() { + use jit && llvm-r1_pkg_setup use test && check-reqs_pkg_setup } @@ -279,6 +290,7 @@ src_configure() { --with-wheel-pkg-dir="${EPREFIX}"/usr/lib/python/ensurepip $(use_with debug assertions) + $(use_enable jit experimental-jit) $(use_enable pgo optimizations) $(use_with readline readline "$(usex libedit editline readline)") $(use_with valgrind)