diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -16,19 +16,24 @@ _pydeps=(cbor2 yaml) depends=(python "${_pydeps[@]/#/python-}") -makedepends=(python-setuptools) +makedepends=(python-build python-installer python-wheel python-poetry-core) options=('!emptydirs') _archive="$pkgname-$pkgver" source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$_archive.tar.gz") sha256sums=('1cb2d4de31763bbac175f0e493e195568f956318caa70ac3359ff794932628cf') +prepare() { + cd "$_archive" + rm -rf dist/ +} + build() { - cd "$_archive" - python setup.py build + cd "$_archive" + python -m build --wheel --no-isolation } package() { - cd "$_archive" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE + cd "$_archive" + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE } |