Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages / python-astunparse
Commits: ccbf9226 by loqs at 2026-01-29T20:57:33+00:00 Use PEP 517 for building Related https://archlinux.org/todo/use-pep-517-for-building-if-supported/. - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -5,6 +5,8 @@ pkgbase = python-astunparse url = https://github.com/simonpercivall/astunparse arch = any license = python + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools makedepends = python-wheel depends = python ===================================== PKGBUILD ===================================== @@ -7,7 +7,7 @@ pkgrel=10 pkgver=1.6.3 pkgdesc="An AST unparser for Python" depends=('python' 'python-six') -makedepends=('python-setuptools' 'python-wheel') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') url="https://github.com/simonpercivall/astunparse" license=('python') arch=('any') @@ -23,12 +23,12 @@ prepare() { build() { cd "$srcdir/$_pkgname-$pkgver" - python setup.py build + python -m build --wheel --no-isolation } package() { cd "$srcdir/$_pkgname-$pkgver" - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-astunparse/-/commit/ccbf9226876ca171d1cb52e295f0dc8f546237ff -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-astunparse/-/commit/ccbf9226876ca171d1cb52e295f0dc8f546237ff You're receiving this email because of your account on gitlab.archlinux.org.
