diff options
author | lilac | 2019-11-17 22:30:53 +0800 |
---|---|---|
committer | lilac | 2019-11-17 22:30:53 +0800 |
commit | e8838fa8aee7b12ce5374b70d1437ccafd128b01 (patch) | |
tree | 6f7319256f6347ebe4fb8e72f9886a569a3e0ac4 | |
parent | bb7410aa12bdbcda0287d39418643c93366741e7 (diff) | |
download | aur-e8838fa8aee7b12ce5374b70d1437ccafd128b01.tar.gz |
update by lilac
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = python-onnx pkgdesc = Open Neural Network Exchange pkgver = 1.6.0 - pkgrel = 4 + pkgrel = 6 url = https://onnx.ai arch = x86_64 license = MIT @@ -2,7 +2,7 @@ pkgname=python-onnx pkgver=1.6.0 -pkgrel=4 +pkgrel=6 pkgdesc='Open Neural Network Exchange' arch=('x86_64') url='https://onnx.ai' @@ -34,6 +34,10 @@ optdepends=( source=("${pkgname}::git+https://github.com/onnx/onnx.git#tag=v${pkgver}") sha512sums=('SKIP') +get_pyver () { + python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))' +} + prepare() { cd "${srcdir}/${pkgname}" git submodule update --init --recursive @@ -46,7 +50,7 @@ build() { check() { cd "${srcdir}/${pkgname}" - PYTHONPATH=$(pwd)/build/lib.linux-$CARCH-3.7 pytest -v + PYTHONPATH="$(pwd)/build/lib.linux-${CARCH}-$(get_pyver)" pytest -v } package() { |