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

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Dec 26 12:53:33 UTC 2018


    Date: Wednesday, December 26, 2018 @ 12:53:32
  Author: svenstaro
Revision: 418142

archrelease: copy trunk to community-testing-x86_64

Added:
  tensorboard/repos/community-testing-x86_64/
  tensorboard/repos/community-testing-x86_64/PKGBUILD
    (from rev 418141, tensorboard/trunk/PKGBUILD)

----------+
 PKGBUILD |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

Copied: tensorboard/repos/community-testing-x86_64/PKGBUILD (from rev 418141, tensorboard/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-12-26 12:53:32 UTC (rev 418142)
@@ -0,0 +1,57 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=tensorboard
+pkgver=1.12.1
+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"
+        # Temp fix for https://github.com/tensorflow/tensorflow/issues/24124
+        https://github.com/bazelbuild/bazel/releases/download/0.19.2/bazel-0.19.2-linux-x86_64)
+sha512sums=('279db7aa18faaafd189c95100d79fb0ee3240c65ea05b7122dc2c1caedf1ec68a626257d57f2757a4c09b99a9fe8e74feae3b9a57c0f6f6deb3a15ea079e4e1a'
+            'bd87b7c8c517ff2c4783b7b09c4609e9979d79985ff8ed1d564a8f2f49ad8588bfb72eb5d20b3ecc6c7e7e20b64e79e3913c4705b14d7a330ffbc2a0e09f10c4')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  chmod +x "${srcdir}"/bazel-0.19.2-linux-x86_64
+  "${srcdir}"/bazel-0.19.2-linux-x86_64 build tensorboard:tensorboard
+  "${srcdir}"/bazel-0.19.2-linux-x86_64 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:



More information about the arch-commits mailing list