[arch-commits] Commit in python-tensorflow-serving-api/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 19:39:39 UTC 2020
Date: Thursday, November 12, 2020 @ 19:39:39
Author: felixonmars
Revision: 753566
archrelease: copy trunk to community-staging-any
Added:
python-tensorflow-serving-api/repos/community-staging-any/
python-tensorflow-serving-api/repos/community-staging-any/PKGBUILD
(from rev 753565, python-tensorflow-serving-api/trunk/PKGBUILD)
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Copied: python-tensorflow-serving-api/repos/community-staging-any/PKGBUILD (from rev 753565, python-tensorflow-serving-api/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 19:39:39 UTC (rev 753566)
@@ -0,0 +1,27 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: getzze <getzze at gmail dot com>
+pkgname=python-tensorflow-serving-api
+_name=tensorflow_serving_api
+pkgver=2.3.0
+pkgrel=2
+pkgdesc="Serving system for machine learning models, designed for production environments"
+arch=(any)
+url="https://www.tensorflow.org/serving/"
+license=('Apache')
+depends=('python' 'python-grpcio' 'python-tensorflow' 'python-protobuf')
+makedepends=('bazel' 'git' 'python-wheel' 'python-pip')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tensorflow/serving/archive/${pkgver}.tar.gz")
+sha256sums=('99b66ac021064fdddd7f15b9daa36a202a139a22c28b915f35965d77255d0575')
+
+build() {
+ cd serving-*
+ bazel build -c opt tensorflow_serving/tools/pip_package:build_pip_package
+ sed -i "s|bazel-genfiles/|bazel-out/k8-opt/bin/|g" tensorflow_serving/tools/pip_package/build_pip_package.sh
+ bazel-bin/tensorflow_serving/tools/pip_package/build_pip_package /tmp/pip
+}
+
+package() {
+ cd serving-*
+ pip install --ignore-installed --upgrade --root "${pkgdir}"/ /tmp/pip/tensorflow_serving*.whl --no-dependencies
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list