[arch-commits] Commit in python-pycapnp/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Wed Jun 8 22:13:02 UTC 2022
Date: Wednesday, June 8, 2022 @ 22:13:01
Author: dvzrv
Revision: 1229403
upgpkg: python-pycapnp 1.1.0-5: capnproto 0.10.1 rebuild
Modified:
python-pycapnp/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-08 22:09:19 UTC (rev 1229402)
+++ PKGBUILD 2022-06-08 22:13:01 UTC (rev 1229403)
@@ -2,13 +2,13 @@
pkgname=python-pycapnp
pkgver=1.1.0
-pkgrel=4
+pkgrel=5
pkgdesc="A cython wrapping of the C++ Cap'n Proto library"
url="https://github.com/capnproto/pycapnp"
license=('BSD')
arch=('x86_64')
depends=('capnproto' 'python')
-makedepends=('cython' 'python-pkgconfig' 'python-setuptools')
+makedepends=('cython' 'python-build' 'python-installer' 'python-pkgconfig' 'python-setuptools' 'python-wheel')
checkdepends=('python-pytest')
source=("https://github.com/capnproto/pycapnp/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('1013b49f860a2b65e5850bf9435a23bc5171ce8648c4c671212f206bb2718f97cadf791c1829ec4bacb2cd26dc380a4a61a1f8cabe4ae8b064f73158b16389b2')
@@ -15,17 +15,19 @@
build() {
cd pycapnp-$pkgver
- python setup.py build
+ python -m build --wheel --no-isolation
}
check() {
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+
cd pycapnp-$pkgver
- PYTHONPATH="build/lib.linux-$CARCH-3.10" pytest
+ PYTHONPATH="build/lib.linux-$CARCH-$python_version" pytest
}
package() {
cd pycapnp-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
}
More information about the arch-commits
mailing list