diff options
author | Martino Pilia | 2019-11-23 20:05:41 +0200 |
---|---|---|
committer | Martino Pilia | 2019-11-23 20:05:41 +0200 |
commit | 9df564b0733f678589396d42f7b8e7d4852a0f79 (patch) | |
tree | f3830d8a50205f2e590a186dfc5463fa7b8423be | |
parent | 6c406edc2a3a829a2f6cdbf576ffabe7a59ce186 (diff) | |
download | aur-python-aiocoap-git.tar.gz |
No hard-coded Python version
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = python-aiocoap-git pkgdesc = Python implementation of CoAP pkgver = 0.4b1.r12.gb4540f9 - pkgrel = 1 + pkgrel = 2 url = https://github.com/chrysn/aiocoap arch = any license = MIT @@ -2,7 +2,7 @@ _pkgname=aiocoap pkgname=python-${_pkgname}-git pkgver=0.4b1.r12.gb4540f9 -pkgrel=1 +pkgrel=2 pkgdesc="Python implementation of CoAP" arch=('any') url="https://github.com/chrysn/aiocoap" @@ -24,6 +24,6 @@ package() { python setup.py install --optimize=1 --root="$pkgdir" # Do not install tests, to not conflict with other packages - _py_version=$(python --version | grep -o '[0-9]\.[0-9]\+') + _py_version=$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')") rm -rf "$pkgdir/usr/lib/python${_py_version}/site-packages/tests" } |