summaryrefslogtreecommitdiff
path: root/dev-lang/python/python-3.11.3.ebuild
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-26 08:48:29 +0100
committerSam James <sam@gentoo.org>2023-05-26 08:48:29 +0100
commit4c6957bd00ba63468d93f40982d77a378858569d (patch)
treefa2a1e81b63506e9631bd6d17fc119788b5e39a1 /dev-lang/python/python-3.11.3.ebuild
parent4bdf7646ac82d9c54f87b0f206179fc593adff85 (diff)
downloadgentoo-4c6957bd00ba63468d93f40982d77a378858569d.tar.gz
gentoo-4c6957bd00ba63468d93f40982d77a378858569d.tar.bz2
gentoo-4c6957bd00ba63468d93f40982d77a378858569d.zip
dev-lang/python: add USE=debug to control assertions
Note that we don't do pydebug for this as it forces optimisations to be disabled (-O0, not just some). For newer Pythons, fwiw, pydebug is ABI compatible with release pythons, but still not worth it. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/python/python-3.11.3.ebuild')
-rw-r--r--dev-lang/python/python-3.11.3.ebuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev-lang/python/python-3.11.3.ebuild b/dev-lang/python/python-3.11.3.ebuild
index fed1bebc47f5..389e56a6a6f4 100644
--- a/dev-lang/python/python-3.11.3.ebuild
+++ b/dev-lang/python/python-3.11.3.ebuild
@@ -30,7 +30,7 @@ LICENSE="PSF-2"
SLOT="${PYVER}"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
IUSE="
- bluetooth build +ensurepip examples gdbm hardened libedit lto
+ bluetooth build debug +ensurepip examples gdbm hardened libedit lto
+ncurses pgo +readline +sqlite +ssl test tk valgrind
"
RESTRICT="!test? ( test )"
@@ -221,6 +221,7 @@ src_configure() {
--with-pkg-config=yes
--with-wheel-pkg-dir="${EPREFIX}"/usr/lib/python/ensurepip
+ $(use_with debug assertions)
$(use_with lto)
$(use_enable pgo optimizations)
$(use_with readline readline "$(usex libedit editline readline)")