[arch-commits] Commit in tensorboard/repos/community-x86_64 (3 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Tue Oct 8 17:34:17 UTC 2019
Date: Tuesday, October 8, 2019 @ 17:34:17
Author: svenstaro
Revision: 514264
archrelease: copy trunk to community-x86_64
Added:
tensorboard/repos/community-x86_64/PKGBUILD
(from rev 514263, tensorboard/trunk/PKGBUILD)
tensorboard/repos/community-x86_64/bump-tensorflow.patch
(from rev 514263, tensorboard/trunk/bump-tensorflow.patch)
Deleted:
tensorboard/repos/community-x86_64/PKGBUILD
-----------------------+
PKGBUILD | 114 +++++++++++++++++++++++++-----------------------
bump-tensorflow.patch | 19 ++++++++
2 files changed, 80 insertions(+), 53 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-08 17:34:11 UTC (rev 514263)
+++ PKGBUILD 2019-10-08 17:34:17 UTC (rev 514264)
@@ -1,53 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
-
-pkgname=tensorboard
-pkgver=1.14.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-tensorflow-serving-api'
- 'python-html5lib' 'python-protobuf' 'python-setuptools' 'python-tensorflow' 'python-grpcio')
-makedepends=('bazel' 'tree')
-source=("https://github.com/tensorflow/tensorboard/archive/${pkgver}.tar.gz")
-sha512sums=('fa42928371a37468d005c3736d21e6a9453dc509c58da405168d1b72e10cc93e857aaf852539721d51c8ab83cf9991250ea165a8798c8acc5c66d022ef8e2c16')
-
-build() {
- cd "$pkgname-$pkgver"
-
- bazel build tensorboard:tensorboard
- bazel build //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} pypackage
- cp README.md pypackage
- cp tensorboard/pip_package/setup.py 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.7/site-packages/external/
-
- _requires="$pkgdir"/usr/lib/python3.7/site-packages/tensorboard-${pkgver}-py3.7.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 514263, tensorboard/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-08 17:34:17 UTC (rev 514264)
@@ -0,0 +1,61 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=tensorboard
+pkgver=2.0.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-tensorflow-serving-api'
+ 'python-html5lib' 'python-protobuf' 'python-setuptools' 'python-tensorflow' 'python-grpcio')
+makedepends=('bazel' 'tree')
+source=("https://github.com/tensorflow/tensorboard/archive/${pkgver}.tar.gz"
+ bump-tensorflow.patch)
+sha512sums=('a0c9421cbb4044a6cacd9041425df9c6c1389e6d379ef575f5797781fe3066a35c7029dc4a505b4d4ea76d0fba0ad42c4b73024182260f615cf7d329c401cb33'
+ 'dde0276779f31a2d6afd0b96c8c6c639fc51f540b4522dfb0329c6ac62e82d870215bf59090f334bb013ebf7b91dd8c8e2466a04a542a363de241c2a16b650ab')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ patch -Np1 -i "$srcdir"/bump-tensorflow.patch
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ bazel build tensorboard:tensorboard
+ bazel build //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} pypackage
+ cp README.md pypackage
+ cp tensorboard/pip_package/setup.py 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.7/site-packages/external/
+
+ _requires="$pkgdir"/usr/lib/python3.7/site-packages/tensorboard-${pkgver}-py3.7.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/bump-tensorflow.patch (from rev 514263, tensorboard/trunk/bump-tensorflow.patch)
===================================================================
--- bump-tensorflow.patch (rev 0)
+++ bump-tensorflow.patch 2019-10-08 17:34:17 UTC (rev 514264)
@@ -0,0 +1,19 @@
+diff --git a/WORKSPACE b/WORKSPACE
+index 30007945..479886aa 100644
+--- a/WORKSPACE
++++ b/WORKSPACE
+@@ -82,11 +82,10 @@ http_archive(
+ name = "org_tensorflow",
+ # NOTE: when updating this, MAKE SURE to also update the protobuf_js runtime version
+ # in third_party/workspace.bzl to >= the protobuf/protoc version provided by TF.
+- sha256 = "48ddba718da76df56fd4c48b4bbf4f97f254ba269ec4be67f783684c75563ef8",
+- strip_prefix = "tensorflow-2.0.0-rc0",
++ sha256 = "364fecb68c48dd4c4fc89fdaede51f29550b612e0c70be33c8ff880e3d535128",
++ strip_prefix = "tensorflow-a6ba397ac0bb2de666709dfc33322b9111414aa7",
+ urls = [
+- "http://mirror.tensorflow.org/github.com/tensorflow/tensorflow/archive/v2.0.0-rc0.tar.gz", # 2019-08-23
+- "https://github.com/tensorflow/tensorflow/archive/v2.0.0-rc0.tar.gz",
++ "https://github.com/tensorflow/tensorflow/archive/a6ba397ac0bb2de666709dfc33322b9111414aa7.tar.gz",
+ ],
+ )
+
More information about the arch-commits
mailing list