diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-23 13:24:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-23 13:24:24 +0100 |
commit | cbf055ae8f2fb67e00df9ea122e64a67f930f576 (patch) | |
tree | ed9ab83fb918b8bc4fb292f48dbce597be5d33fb /dev-python/cbor2/cbor2-5.4.6.ebuild | |
parent | 8702447e13af0a540c01f75bee0416677bced231 (diff) |
gentoo auto-resync : 23:06:2023 - 13:24:24
Diffstat (limited to 'dev-python/cbor2/cbor2-5.4.6.ebuild')
-rw-r--r-- | dev-python/cbor2/cbor2-5.4.6.ebuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/dev-python/cbor2/cbor2-5.4.6.ebuild b/dev-python/cbor2/cbor2-5.4.6.ebuild index 8642665e99e9..cc594d29a9ea 100644 --- a/dev-python/cbor2/cbor2-5.4.6.ebuild +++ b/dev-python/cbor2/cbor2-5.4.6.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( pypy3 python3_{10..12} ) inherit distutils-r1 pypi @@ -31,3 +31,13 @@ python_prepare_all() { sed -i -e "s/--cov//" pyproject.toml || die distutils-r1_python_prepare_all } + +python_compile() { + local -x CBOR2_BUILD_C_EXTENSION=1 + # pypy3 not supported upstream + # py3.12: https://github.com/agronholm/cbor2/issues/171 + if has "${EPYTHON}" pypy3 python3.12; then + CBOR2_BUILD_C_EXTENSION=0 + fi + distutils-r1_python_compile +} |