[arch-commits] Commit in tensorflow-estimator/repos (2 files)

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


    Date: Monday, March 4, 2019 @ 20:54:55
  Author: svenstaro
Revision: 437616

archrelease: copy trunk to community-any

Added:
  tensorflow-estimator/repos/community-any/
  tensorflow-estimator/repos/community-any/PKGBUILD
    (from rev 437615, tensorflow-estimator/trunk/PKGBUILD)

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

Copied: tensorflow-estimator/repos/community-any/PKGBUILD (from rev 437615, tensorflow-estimator/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-03-04 20:54:55 UTC (rev 437616)
@@ -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