diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-02-16 15:25:14 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-02-16 15:25:55 +0100 |
commit | 6367dfa08fbd26ec86f94b6b28ed6f861f9fd85a (patch) | |
tree | aa0cef6eaa94466245eaa8adf18d9e7dd42e57ff /dev-lang/python/python-3.13.0_alpha4.ebuild | |
parent | media-libs/mesa: Version bump to 23.3.6 (diff) | |
download | gentoo-6367dfa08fbd26ec86f94b6b28ed6f861f9fd85a.tar.gz gentoo-6367dfa08fbd26ec86f94b6b28ed6f861f9fd85a.tar.bz2 gentoo-6367dfa08fbd26ec86f94b6b28ed6f861f9fd85a.zip |
dev-lang/python: Add USE=jit to 3.13.0_alpha4
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-lang/python/python-3.13.0_alpha4.ebuild')
-rw-r--r-- | dev-lang/python/python-3.13.0_alpha4.ebuild | 18 |
1 files changed, 15 insertions, 3 deletions
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) |