| author | loqs
<2227-loqs@users.noreply.gitlab.archlinux.org> 2024-03-11 15:25:34 UTC |
| committer | loqs
<2227-loqs@users.noreply.gitlab.archlinux.org> 2024-04-09 12:36:36 UTC |
| parent | ca7f585f68de8865a4b359b6659f9f880aed76f5 |
| PKGBUILD | +5 | -2 |
diff --git a/PKGBUILD b/PKGBUILD index 0190fd3..c94d999 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -15,7 +15,10 @@ depends=( ) makedepends=( 'git' + 'python-build' + 'python-installer' 'python-setuptools' + 'python-wheel' ) checkdepends=( 'python-pytest' @@ -34,7 +37,7 @@ pkgver() { build() { cd "$pkgname" - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -46,7 +49,7 @@ check() { package() { cd "$pkgname" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE }