[arch-commits] Commit in tensorboard/repos/community-x86_64 (PKGBUILD PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Tue May 18 23:35:39 UTC 2021
Date: Tuesday, May 18, 2021 @ 23:35:38
Author: svenstaro
Revision: 936351
archrelease: copy trunk to community-x86_64
Added:
tensorboard/repos/community-x86_64/PKGBUILD
(from rev 936350, tensorboard/trunk/PKGBUILD)
Deleted:
tensorboard/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 117 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 55 insertions(+), 62 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-18 23:35:34 UTC (rev 936350)
+++ PKGBUILD 2021-05-18 23:35:38 UTC (rev 936351)
@@ -1,62 +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=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:
Copied: tensorboard/repos/community-x86_64/PKGBUILD (from rev 936350, tensorboard/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-05-18 23:35:38 UTC (rev 936351)
@@ -0,0 +1,55 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Konstantin Gizdov <arch at kge dot pw>
+
+pkgname=tensorboard
+pkgver=2.5.0
+pkgrel=3
+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}.tar.gz::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 --ignore-installed --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
+ sed -i 's/tensorboard-data-server.*/tensorboard-data-server/' ${_requires}
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list