[arch-commits] Commit in tensorboard/repos/community-x86_64 (PKGBUILD PKGBUILD)
Konstantin Gizdov
kgizdov at archlinux.org
Mon Jan 25 10:38:36 UTC 2021
Date: Monday, January 25, 2021 @ 10:38:36
Author: kgizdov
Revision: 829438
archrelease: copy trunk to community-x86_64
Added:
tensorboard/repos/community-x86_64/PKGBUILD
(from rev 829437, tensorboard/trunk/PKGBUILD)
Deleted:
tensorboard/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 109 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 55 insertions(+), 54 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-25 10:38:31 UTC (rev 829437)
+++ PKGBUILD 2021-01-25 10:38:36 UTC (rev 829438)
@@ -1,54 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
-
-pkgname=tensorboard
-pkgver=2.4.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-setuptools' 'python-grpcio' 'python-google-auth-oauthlib'
- 'python-tensorboard_plugin_wit' 'absl-py')
-optdepends=('python-tensorflow: advanced features for TensorBoard')
-makedepends=('bazel' 'tree')
-source=("${pkgname}-${pkgver}::https://github.com/tensorflow/tensorboard/archive/${pkgver}.tar.gz")
-sha512sums=('f9df59c1b3e200bb64fb49ad8e025aea34a6ac9c97cc29a2f7f28850a2f6853b00e1ac07c66b0d78cc0e14bc60b461fd639c83288c2315fa70811aeaa57a1cde')
-
-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 829437, tensorboard/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-01-25 10:38:36 UTC (rev 829438)
@@ -0,0 +1,55 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Konstantin Gizdov <arch at kge dot pw>
+
+pkgname=tensorboard
+pkgver=2.4.1
+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=('6a612f573ca45e76e5a2cc478d8be335916a7c692e7d29f469c982b60e2200f1442d69055ad35cf2119318b7e0cbd12a87bde8bd665db772d3c2681891832c86')
+
+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:
More information about the arch-commits
mailing list