commit:     0dda15a891f50d4f23273ba6530b42308027893e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May  1 11:38:54 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May  1 11:49:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dda15a8

dev-python/pydantic: Disable C exts on PyPy3

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pydantic/pydantic-1.9.0-r3.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/dev-python/pydantic/pydantic-1.9.0-r3.ebuild 
b/dev-python/pydantic/pydantic-1.9.0-r3.ebuild
index 49687bdecebc..843103c1e5f3 100644
--- a/dev-python/pydantic/pydantic-1.9.0-r3.ebuild
+++ b/dev-python/pydantic/pydantic-1.9.0-r3.ebuild
@@ -37,10 +37,12 @@ src_prepare() {
 }
 
 python_compile() {
+       if [[ ${EPYTHON} == pypy3 ]]; then
+               # do not build extensions on PyPy to workaround
+               # https://github.com/cython/cython/issues/4763
+               local -x SKIP_CYTHON=1
+       fi
        distutils-r1_python_compile
-       # "setup.py clean" is broken
-       # TODO: remove this if distutils-r1.eclass is updated to do rm
-       rm -rf build || die
 }
 
 python_test() {
@@ -69,5 +71,6 @@ python_test() {
                        )
                        ;;
        esac
+       rm -rf pydantic || die
        epytest
 }

Reply via email to