[arch-commits] Commit in tensorboard/repos (3 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 4 05:21:18 UTC 2019


    Date: Monday, November 4, 2019 @ 05:21:17
  Author: felixonmars
Revision: 523185

archrelease: copy trunk to community-staging-x86_64

Added:
  tensorboard/repos/community-staging-x86_64/
  tensorboard/repos/community-staging-x86_64/PKGBUILD
    (from rev 523183, tensorboard/trunk/PKGBUILD)
  tensorboard/repos/community-staging-x86_64/bump-tensorflow.patch
    (from rev 523183, tensorboard/trunk/bump-tensorflow.patch)

-----------------------+
 PKGBUILD              |   61 ++++++++++++++++++++++++++++++++++++++++++++++++
 bump-tensorflow.patch |   19 ++++++++++++++
 2 files changed, 80 insertions(+)

Copied: tensorboard/repos/community-staging-x86_64/PKGBUILD (from rev 523183, tensorboard/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-11-04 05:21:17 UTC (rev 523185)
@@ -0,0 +1,61 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=tensorboard
+pkgver=2.0.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-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.8/site-packages/external/
+
+  _requires="$pkgdir"/usr/lib/python3.8/site-packages/tensorboard-${pkgver}-py3.8.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-staging-x86_64/bump-tensorflow.patch (from rev 523183, tensorboard/trunk/bump-tensorflow.patch)
===================================================================
--- community-staging-x86_64/bump-tensorflow.patch	                        (rev 0)
+++ community-staging-x86_64/bump-tensorflow.patch	2019-11-04 05:21:17 UTC (rev 523185)
@@ -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