commit:     f46038204a524c907de3ebc16037f415117b8f25
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 10 07:04:40 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jul 10 07:04:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4603820

dev-python/mypy: fix disabling mypyc for py3.13

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/mypy/mypy-1.10.1.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-python/mypy/mypy-1.10.1.ebuild 
b/dev-python/mypy/mypy-1.10.1.ebuild
index b87fe789fc41..9bd317074557 100644
--- a/dev-python/mypy/mypy-1.10.1.ebuild
+++ b/dev-python/mypy/mypy-1.10.1.ebuild
@@ -63,14 +63,15 @@ PATCHES=(
 # test files (https://github.com/mypyc/mypyc/issues/1014)
 export CCACHE_DISABLE=1
 
-src_compile() {
+python_compile() {
        local -x MYPY_USE_MYPYC=$(usex native-extensions 1 0)
        case ${EPYTHON} in
                python3.13)
                        # https://github.com/mypyc/mypyc/issues/1056
                        MYPY_USE_MYPYC=0
+                       ;;
        esac
-       distutils-r1_src_compile
+       distutils-r1_python_compile
 }
 
 python_test() {

Reply via email to