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

Sven-Hendrik Haase svenstaro at archlinux.org
Sun Oct 15 06:21:42 UTC 2017


    Date: Sunday, October 15, 2017 @ 06:21:38
  Author: svenstaro
Revision: 262828

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: tensorboard/repos/community-testing-x86_64/PKGBUILD (from rev 262827, tensorboard/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-10-15 06:21:38 UTC (rev 262828)
@@ -0,0 +1,51 @@
+# $Id: PKGBUILD 244979 2017-07-13 15:39:06Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=tensorboard
+pkgver=0.4.0rc1
+_pkgver=0.4.0-rc1
+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-tensorflow' 'python-setuptools')
+makedepends=('bazel')
+source=("https://github.com/tensorflow/tensorboard/archive/${_pkgver}.tar.gz")
+sha512sums=('fd7867355aa578ce9dbdd0351d035fe26cff093f35b3e437df525a59d6c57bf42ce623bfe589d1a1f4d8c130f983d1047d214ff64974af6707529a3e6b5366c7')
+
+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/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 -rf "$pkgdir"/usr/lib/python3.6/site-packages/external/
+
+  # 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/' "$pkgdir"/usr/lib/python3.6/site-packages/tensorflow_tensorboard-${pkgver}-py3.6.egg-info/requires.txt
+  sed -i 's/html5lib==.*/html5lib/' "$pkgdir"/usr/lib/python3.6/site-packages/tensorflow_tensorboard-${pkgver}-py3.6.egg-info/requires.txt
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list