mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-22 23:01:02 +02:00
Merge branch 'master' into pydispatcher
This commit is contained in:
commit
1201758969
1 changed files with 18 additions and 8 deletions
|
|
@ -4,10 +4,9 @@
|
|||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
# https://github.com/fancycode/pylzma/issues/80
|
||||
# no python 3.13 support
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
inherit distutils-r1
|
||||
DISTUTILS_EXT=1
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
DESCRIPTION="Platform independent python bindings for the LZMA compression library."
|
||||
HOMEPAGE="https://www.joachim-bauch.de/projects/pylzma/"
|
||||
|
|
@ -17,10 +16,21 @@ LICENSE="LGPL-2.1"
|
|||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
#distutils_enable_tests unittest
|
||||
#FIXME: run all tests
|
||||
python_test() {
|
||||
"${EPYTHON}" tests/test_pylzma.py || die "Tests fail with ${EPYTHON}"
|
||||
distutils_enable_tests unittest
|
||||
|
||||
src_prepare() {
|
||||
# temporary fixes, they should be removed when the upstream is corrected
|
||||
# https://github.com/fancycode/pylzma/pull/86
|
||||
sed -i -e 's/args/args, PyObject *kwargs/' src/pylzma/pylzma_decompress.h
|
||||
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
|
||||
append-cflags -Wno-int-conversion
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue