Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pydantic/
Date: Sun, 01 May 2022 11:49:27
Message-Id: 1651405761.0dda15a891f50d4f23273ba6530b42308027893e.mgorny@gentoo
1 commit: 0dda15a891f50d4f23273ba6530b42308027893e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 1 11:38:54 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 1 11:49:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dda15a8
7
8 dev-python/pydantic: Disable C exts on PyPy3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pydantic/pydantic-1.9.0-r3.ebuild | 9 ++++++---
13 1 file changed, 6 insertions(+), 3 deletions(-)
14
15 diff --git a/dev-python/pydantic/pydantic-1.9.0-r3.ebuild b/dev-python/pydantic/pydantic-1.9.0-r3.ebuild
16 index 49687bdecebc..843103c1e5f3 100644
17 --- a/dev-python/pydantic/pydantic-1.9.0-r3.ebuild
18 +++ b/dev-python/pydantic/pydantic-1.9.0-r3.ebuild
19 @@ -37,10 +37,12 @@ src_prepare() {
20 }
21
22 python_compile() {
23 + if [[ ${EPYTHON} == pypy3 ]]; then
24 + # do not build extensions on PyPy to workaround
25 + # https://github.com/cython/cython/issues/4763
26 + local -x SKIP_CYTHON=1
27 + fi
28 distutils-r1_python_compile
29 - # "setup.py clean" is broken
30 - # TODO: remove this if distutils-r1.eclass is updated to do rm
31 - rm -rf build || die
32 }
33
34 python_test() {
35 @@ -69,5 +71,6 @@ python_test() {
36 )
37 ;;
38 esac
39 + rm -rf pydantic || die
40 epytest
41 }