diff options
author | Stefan Gehr | 2024-04-23 14:36:53 +0200 |
---|---|---|
committer | Stefan Gehr | 2024-04-23 14:36:53 +0200 |
commit | 70539b8d7a59c99135bfe3fd410c392b8e74685f (patch) | |
tree | 2555fbfc9132aa800cb10271c52c9e77c117a827 | |
parent | e6087ecfc6aedc6f30b9f23cf8e307f9a5fee904 (diff) | |
download | aur-python-tr064.tar.gz |
Use standards based install method
Using
https://wiki.archlinux.org/title/Python_package_guidelines#Standards_based_(PEP_517)
to build and install the package.
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 5 insertions, 4 deletions
@@ -6,7 +6,8 @@ pkgbase = python-tr064 arch = any license = MIT makedepends = git - makedepends = python-pip + makedepends = python-pytest-runner + makedepends = python-wheel depends = python-requests depends = python-lxml source = git+https://github.com/bfueldner/tr064#commit=6b12f879fa5ccec4cd2d68fac48db1c2815f131c @@ -9,17 +9,17 @@ arch=(any) url="https://github.com/bfueldner/tr064" license=(MIT) depends=(python-requests python-lxml) -makedepends=(git python-pip) +makedepends=(git python-pytest-runner python-wheel) source=(git+"https://github.com/bfueldner/tr064#commit=6b12f879fa5ccec4cd2d68fac48db1c2815f131c") b2sums=("SKIP") build() { cd $_name - python setup.py build + python -m build --wheel --no-isolation } package() { cd $_name - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } |