diff options
-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() { |