[arch-commits] Commit in tensorboard/repos/community-x86_64 (PKGBUILD PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon May 17 00:10:01 UTC 2021


    Date: Monday, May 17, 2021 @ 00:10:00
  Author: svenstaro
Revision: 935977

archrelease: copy trunk to community-x86_64

Added:
  tensorboard/repos/community-x86_64/PKGBUILD
    (from rev 935976, tensorboard/trunk/PKGBUILD)
Deleted:
  tensorboard/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  117 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 62 insertions(+), 55 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-17 00:09:41 UTC (rev 935976)
+++ PKGBUILD	2021-05-17 00:10:00 UTC (rev 935977)
@@ -1,55 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
-# Contributor: Konstantin Gizdov <arch at kge dot pw>
-
-pkgname=tensorboard
-pkgver=2.5.0
-pkgrel=1
-pkgdesc="TensorFlow's Visualization Toolkit"
-url='https://github.com/tensorflow/tensorboard'
-arch=('x86_64')
-license=('APACHE')
-depends=('python' 'python-werkzeug' 'python-numpy' 'python-bleach' 'python-wheel' 'python-markdown'
-         'python-html5lib' 'python-protobuf' 'python-grpcio' 'python-google-auth-oauthlib'
-         'python-tensorboard_plugin_wit' 'absl-py')
-optdepends=('python-tensorflow: advanced features for TensorBoard')
-makedepends=('bazel' 'python-setuptools' 'tree')
-source=("${pkgname}-${pkgver}::https://github.com/tensorflow/tensorboard/archive/${pkgver}.tar.gz")
-sha512sums=('f2c8e9d23dbfab2f21e90034275593a8761596afa5bc464b45a43058daf914d6d11425869e8d66c6be7cf057da9f2f9bc464e9df1f0a4dbab23a8c07b39f7a4d')
-
-build() {
-  cd "$pkgname-$pkgver"
-
-  bazel build --experimental_repo_remote_exec tensorboard:tensorboard
-  bazel build --experimental_repo_remote_exec //tensorboard/pip_package:build_pip_package
-
-  mkdir pypackage
-  cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/external pypackage
-  cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/tensorboard pypackage
-  cp tensorboard/pip_package/{README.rst,MANIFEST.in,setup.py,requirements.txt} pypackage
-  cp README.md pypackage
-  cd pypackage
-  python setup.py build
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  cd pypackage
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  rm -r "$pkgdir"/usr/lib/python3.9/site-packages/external/
-
-  _requires="$pkgdir"/usr/lib/python3.9/site-packages/tensorboard-${pkgver}-py3.9.egg-info/requires.txt
-  # This is ugly: We need to patch it to use current bleach and html5lib
-  # because old ones are not even compatible with Python 3.6 and we don't have
-  # those in Arch of course.
-  sed -i 's/bleach==.*/bleach/' ${_requires}
-  sed -i 's/html5lib==.*/html5lib/' ${_requires}
-  # Other ugly hack: workaround for issues 650
-  # https://github.com/tensorflow/tensorboard/issues/650
-  sed -i '/^futures/d' ${_requires}
-}
-
-# vim:set ts=2 sw=2 et:

Copied: tensorboard/repos/community-x86_64/PKGBUILD (from rev 935976, tensorboard/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-17 00:10:00 UTC (rev 935977)
@@ -0,0 +1,62 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Konstantin Gizdov <arch at kge dot pw>
+
+pkgname=tensorboard
+pkgver=2.5.0
+pkgrel=2
+pkgdesc="TensorFlow's Visualization Toolkit"
+url='https://github.com/tensorflow/tensorboard'
+arch=('x86_64')
+license=('APACHE')
+depends=('python' 'python-werkzeug' 'python-numpy' 'python-bleach' 'python-wheel' 'python-markdown'
+         'python-html5lib' 'python-protobuf' 'python-grpcio' 'python-google-auth-oauthlib'
+         'python-tensorboard_plugin_wit' 'absl-py')
+makedepends=('bazel' 'python-setuptools' 'tree' 'rust' 'python-pip')
+optdepends=('python-tensorflow: advanced features for TensorBoard')
+source=("${pkgname}-${pkgver}::https://github.com/tensorflow/tensorboard/archive/${pkgver}.tar.gz")
+sha512sums=('f2c8e9d23dbfab2f21e90034275593a8761596afa5bc464b45a43058daf914d6d11425869e8d66c6be7cf057da9f2f9bc464e9df1f0a4dbab23a8c07b39f7a4d')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  bazel build //tensorboard
+  bazel build //tensorboard/pip_package:build_pip_package
+
+  cd tensorboard/data/server
+  cargo build --release
+  python pip_package/build.py --server-binary target/release/rustboard --out-dir /tmp
+  cd "$srcdir/$pkgname-$pkgver"
+
+  mkdir pypackage
+  cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/external pypackage
+  cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/tensorboard pypackage
+  cp tensorboard/pip_package/{README.rst,MANIFEST.in,setup.py,requirements.txt} pypackage
+  cp README.md pypackage
+  cd pypackage
+  python setup.py build
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  pip install --root "$pkgdir" /tmp/*.whl
+
+  cd pypackage
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  rm -r "$pkgdir"/usr/lib/python3.9/site-packages/external/
+
+  _requires="$pkgdir"/usr/lib/python3.9/site-packages/tensorboard-${pkgver}-py3.9.egg-info/requires.txt
+  # This is ugly: We need to patch it to use current bleach and html5lib
+  # because old ones are not even compatible with Python 3.6 and we don't have
+  # those in Arch of course.
+  sed -i 's/bleach==.*/bleach/' ${_requires}
+  sed -i 's/html5lib==.*/html5lib/' ${_requires}
+  # Other ugly hack: workaround for issues 650
+  # https://github.com/tensorflow/tensorboard/issues/650
+  sed -i '/^futures/d' ${_requires}
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list