[arch-commits] Commit in (4 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Mar 4 20:54:40 UTC 2019


    Date: Monday, March 4, 2019 @ 20:54:40
  Author: svenstaro
Revision: 437615

Add tensorflow-estimator for tensorflow

Added:
  tensorflow-estimator/
  tensorflow-estimator/repos/
  tensorflow-estimator/trunk/
  tensorflow-estimator/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Added: tensorflow-estimator/trunk/PKGBUILD
===================================================================
--- tensorflow-estimator/trunk/PKGBUILD	                        (rev 0)
+++ tensorflow-estimator/trunk/PKGBUILD	2019-03-04 20:54:40 UTC (rev 437615)
@@ -0,0 +1,35 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Maintainer: Konstantin Gizdov (kgizdov) <arch at kge.pw>
+
+pkgname=tensorflow-estimator
+pkgver=1.13.0
+pkgrel=1
+pkgdesc="A high-level TensorFlow API that greatly simplifies machine learning programming"
+url="https://github.com/tensorflow/estimator"
+license=('APACHE')
+arch=('any')
+makedepends=('bazel' 'python-wheel' 'python-setuptools' 'python-pip' 'python-tensorflow')
+source=("https://github.com/tensorflow/estimator/archive/v${pkgver}.tar.gz")
+sha512sums=('e4be92b805776d2be5f391f737f1043b994f42721173c4d4a7dbf3fac9b00121cb072091a474bf71c7dcd952fc8b330cf9254c7a5ad9d096ba1cdc12ba12078b')
+
+build() {
+  cd ${srcdir}/estimator-${pkgver}
+
+  bazel build //tensorflow_estimator/tools/pip_package:build_pip_package
+  bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package ${srcdir}/estimator_pip
+}
+
+check() {
+  cd ${srcdir}/estimator-${pkgver}
+
+  # Of course, upstream doesn't care about working tests...
+  # Revisit this at some point.
+  # bazel test //tensorflow_estimator/...
+}
+
+package() {
+  cd ${srcdir}/estimator-${pkgver}
+
+  WHEEL_PACKAGE=$(find ${srcdir}/estimator_pip -name "tensor*.whl")
+  pip install --ignore-installed --upgrade --root $pkgdir/ $WHEEL_PACKAGE --no-dependencies
+}


More information about the arch-commits mailing list