From 17f59ed81daef35aaa57f322f4499b8cc19cccc3 Mon Sep 17 00:00:00 2001 From: psykose Date: Thu, 24 Nov 2022 06:05:35 +0000 Subject: [PATCH] testing/py3-dexml: fix build --- testing/py3-dexml/APKBUILD | 11 +++++++---- testing/py3-dexml/py3.patch | 13 +++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 testing/py3-dexml/py3.patch diff --git a/testing/py3-dexml/APKBUILD b/testing/py3-dexml/APKBUILD index 27676132bbc..7bae94004f1 100644 --- a/testing/py3-dexml/APKBUILD +++ b/testing/py3-dexml/APKBUILD @@ -12,17 +12,20 @@ replaces="py-dexml" # for backwards compatibility provides="py-dexml=$pkgver-r$pkgrel" # for backwards compatibility depends="python3" makedepends="python3-dev py3-setuptools" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz + py3.patch + " builddir="$srcdir"/$_pkgname-$pkgver build() { - cd "$builddir" python3 setup.py build } package() { - cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="b8ac2b9f875ac7cf699eb9ee17adb8678ed8d4a796130bbb60f05431207adb68f490b7a7a41600acbc16a3cc08d55f22d91a13e53fe3d835a322709ee3446c9f dexml-0.5.1.tar.gz" +sha512sums=" +b8ac2b9f875ac7cf699eb9ee17adb8678ed8d4a796130bbb60f05431207adb68f490b7a7a41600acbc16a3cc08d55f22d91a13e53fe3d835a322709ee3446c9f dexml-0.5.1.tar.gz +de2ea4ce179d64c0bb3bf66a40739b4f1b01504b43e74666f60882d86da83d22edbe4606bd24c9605947ac677cc69169e5270df8574b8c9737830959bb16300f py3.patch +" diff --git a/testing/py3-dexml/py3.patch b/testing/py3-dexml/py3.patch new file mode 100644 index 00000000000..bc7394c01d0 --- /dev/null +++ b/testing/py3-dexml/py3.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index 285a258..2521bb6 100644 +--- a/setup.py ++++ b/setup.py +@@ -20,8 +20,6 @@ except ImportError: + from distutils.core import setup + else: + setup_kwds["test_suite"] = "dexml.test" +- if sys.version_info > (3,): +- setup_kwds["use_2to3"] = True + + + # Extract the docstring and version declaration from the module.