mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-24 15:51:03 +02:00
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:
parent
969648a39b
commit
2533703fc0
1 changed files with 7 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue