Date: Wednesday, November 16, 2022 @ 16:05:53
Author: heftig
Revision: 461930
use build+installer
Modified:
python-dbusmock/trunk/PKGBUILD
----------+
PKGBUILD | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-16 11:52:42 UTC (rev 461929)
+++ PKGBUILD 2022-11-16 16:05:53 UTC (rev 461930)
@@ -8,7 +8,8 @@
arch=(any)
license=(LGPL3)
depends=(python-dbus python-gobject)
-makedepends=(python-setuptools python-setuptools-scm git)
+makedepends=(python-setuptools python-setuptools-scm python-build
+ python-installer python-wheel git)
_commit=276f54de0f653e8a37b0d0392450df3f57b0a746 # tags/0.28.6^0
source=("git+https://github.com/martinpitt/python-dbusmock#commit=$_commit"
0001-Fix-OBEX-PullAll-after-pathlib-conversion.patch)
@@ -30,12 +31,12 @@
build() {
cd $pkgname
- python setup.py build
+ python -m build --wheel --no-isolation
}
package() {
cd $pkgname
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ python -m installer --destdir="$pkgdir" dist/*.whl
}
# vim:set sw=2 sts=-1 et: