summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-05-01 13:38:54 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-01 13:49:21 +0200
commit0dda15a891f50d4f23273ba6530b42308027893e (patch)
tree53013e1399817e7b3e78f50c62d00bc1d40a1e5c /dev-python/pydantic
parentdev-python/pydantic: Require old python-email-validator for tests (diff)
downloadgentoo-0dda15a891f50d4f23273ba6530b42308027893e.tar.gz
gentoo-0dda15a891f50d4f23273ba6530b42308027893e.tar.bz2
gentoo-0dda15a891f50d4f23273ba6530b42308027893e.zip
dev-python/pydantic: Disable C exts on PyPy3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pydantic')
-rw-r--r--dev-python/pydantic/pydantic-1.9.0-r3.ebuild9
1 files 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
}