From 50f2fe120ecc77c21cdedbdc73ff6679d69ac9b2 Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Tue, 27 Sep 2022 23:22:07 +0800 Subject: [PATCH] python-tf2onnx: unpin flatbuffers and update deps See: https://github.com/google/flatbuffers/issues/7499 --- archlinuxcn/python-tf2onnx/PKGBUILD | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/archlinuxcn/python-tf2onnx/PKGBUILD b/archlinuxcn/python-tf2onnx/PKGBUILD index 3e7999af970e..e5129c6ce83c 100644 --- a/archlinuxcn/python-tf2onnx/PKGBUILD +++ b/archlinuxcn/python-tf2onnx/PKGBUILD @@ -3,12 +3,12 @@ pkgname=python-tf2onnx epoch=1 pkgver=1.12.1 -pkgrel=2 +pkgrel=3 pkgdesc='Convert TensorFlow models to ONNX' arch=(any) url='https://github.com/onnx/tensorflow-onnx' license=(MIT) -depends=(python python-tensorflow python-numpy python-onnx python-requests python-six) +depends=(python python-tensorflow python-numpy python-onnx python-requests python-six python-flatbuffers) makedepends=(python-setuptools python-build python-installer python-wheel) checkdepends=(python-pytest python-graphviz python-parameterized python-yaml python-onnxruntime) source=("https://github.com/onnx/tensorflow-onnx/archive/v$pkgver/tf2onnx-v$pkgver.tar.gz" @@ -22,6 +22,9 @@ prepare() { sed -i -r 's#--cov\S+##' setup.cfg sed -i "s#'pytest-runner'##" setup.py + # https://github.com/onnx/tensorflow-onnx/issues/1977 + sed -i 's#flatbuffers~=1.12#flatbuffers#' setup.py + # The latest upstream tag may not sync with the version file echo $pkgver > VERSION_NUMBER