[arch-commits] Commit in python-tensorflow-estimator/repos (2 files)
Sven-Hendrik Haase
svenstaro at gemini.archlinux.org
Sun Dec 5 02:56:07 UTC 2021
Date: Sunday, December 5, 2021 @ 02:56:07
Author: svenstaro
Revision: 1065113
archrelease: copy trunk to community-staging-any
Added:
python-tensorflow-estimator/repos/community-staging-any/
python-tensorflow-estimator/repos/community-staging-any/PKGBUILD
(from rev 1065112, python-tensorflow-estimator/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-tensorflow-estimator/repos/community-staging-any/PKGBUILD (from rev 1065112, python-tensorflow-estimator/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-05 02:56:07 UTC (rev 1065113)
@@ -0,0 +1,36 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+# Maintainer: Konstantin Gizdov (kgizdov) <arch at kge.pw>
+
+pkgname=python-tensorflow-estimator
+pkgver=2.7.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')
+depends=('python-wrapt')
+makedepends=('bazel' 'python-wheel' 'python-setuptools' 'python-pip' 'python-tensorflow')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tensorflow/estimator/archive/v${pkgver}.tar.gz")
+sha512sums=('e02ee93baf2e36f2e42dec71bd2e31486dc96a7ff25d813fbbe3aae1d0eb1fccdda2cfcad46a87c6cdcd143c1b88915b95bc158ac3240a36734b725b3f89bda3')
+
+build() {
+ cd 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 estimator-${pkgver}
+
+ # Of course, upstream doesn't care about working tests...
+ # Revisit this at some point.
+ # bazel test //tensorflow_estimator/...
+}
+
+package() {
+ cd 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