dev-python/pylzma: enable py3.13

fixing the compilation by adding the needed CFLAGS
fixing a QA for DISTUTILS_EXT
This commit is contained in:
rick 2025-09-13 23:09:44 +02:00
parent 969648a39b
commit 2533703fc0
No known key found for this signature in database
GPG key ID: D3FB4A5EDD2CBF02

View file

@ -4,9 +4,8 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
# https://github.com/fancycode/pylzma/issues/80
# no python 3.13 support
PYTHON_COMPAT=( python3_{11..12} )
DISTUTILS_EXT=1
PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1
DESCRIPTION="Platform independent python bindings for the LZMA compression library."
@ -23,6 +22,11 @@ src_prepare() {
sed -i -e 's/EnvironmentError, e/EnvironmentError as e/' tests/test_usage.py
eapply_user
}
python_compile() {
# small trick to get it compile on recent Python versions
# https://github.com/fancycode/pylzma/issues/80
CFLAGS=-Wno-int-conversion distutils-r1_python_compile
}
python_install_all() {