From 3ad02bcd5d2fe0ba3121d5797714cb46f28aafc7 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sat, 13 Dec 2025 21:32:09 -0500 Subject: [PATCH] dev-python/mypy: Disable native-extensions by default, backported As before, mypy with mypyc takes a *very* long time to build and has questionable codegen approaches, zero parallelism, defies ccache, etc. While some will surely desire it (I do!) some won't and it seems overall more trouble than it's worth if you build your own from source. (This is where the binhost comes in handy). The latest iteration is discovering it consistently (for me) runs out of memory on arm32, which again is not as surprising as it could be given mypyc operates by "unity build"ing the entire codebase as a single `*.c` file (not even one per module), resulting not just in long builds, but builds where all costs are paid at the same time. Sad to say, this default really needs to be given the boot. Bug: https://bugs.gentoo.org/966484 Signed-off-by: Eli Schwartz --- dev-python/mypy/mypy-1.18.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/mypy/mypy-1.18.2.ebuild b/dev-python/mypy/mypy-1.18.2.ebuild index 3ed65bbf8cba2..39ffa8b05a29a 100644 --- a/dev-python/mypy/mypy-1.18.2.ebuild +++ b/dev-python/mypy/mypy-1.18.2.ebuild @@ -23,7 +23,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" KEYWORDS="amd64 ~arm arm64 ~loong ppc ppc64 ~riscv ~s390 ~sparc x86" -IUSE="+native-extensions" +IUSE="native-extensions" # stubgen collides with this package: https://bugs.gentoo.org/585594 RDEPEND="