From 864d257202732bdd31af81fe0c705cae5e00f3d2 Mon Sep 17 00:00:00 2001 From: DeadNews Date: Mon, 8 May 2023 20:48:36 +0200 Subject: [PATCH] build: update `PKGBUILD` (#86) --- PKGBUILD | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index cfa75db0..b72aa1f9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -13,7 +13,12 @@ depends=( "python-pyperclip" "python-requests" ) -makedepends=("python-setuptools") +makedepends=( + "python-build" + "python-installer" + "python-poetry-core" + "python-poetry-dynamic-versioning" +) license=("MIT") arch=("any") source=("https://files.pythonhosted.org/packages/source/${_module::1}/${_module}/${_module}-${pkgver}.tar.gz") @@ -21,11 +26,10 @@ sha256sums=("") build() { cd "${srcdir}/${_module}-${pkgver}" - python setup.py build + python -m build --wheel --no-isolation } package() { - depends+=() cd "${srcdir}/${_module}-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + python -m installer --destdir="${pkgdir}" dist/*.whl }