[arch-commits] Commit in tensorflow/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Fri Sep 1 17:51:42 UTC 2017


    Date: Friday, September 1, 2017 @ 17:51:41
  Author: svenstaro
Revision: 255249

upgpkg: tensorflow 1.3.0-2

Rip out tensorboard into its own package

Modified:
  tensorflow/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-09-01 17:39:43 UTC (rev 255248)
+++ PKGBUILD	2017-09-01 17:51:41 UTC (rev 255249)
@@ -5,12 +5,14 @@
 pkgbase=tensorflow
 pkgname=(tensorflow tensorflow-cuda python-tensorflow python-tensorflow-cuda)
 pkgver=1.3.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Library for computation using data flow graphs for scalable machine learning"
 url="https://www.tensorflow.org/"
 license=('Apache2')
 arch=('x86_64')
-makedepends=('git' 'bazel' 'python-numpy' 'gcc5' 'cuda' 'cudnn6' 'python-pip' 'python-wheel' 'python-setuptools')
+makedepends=('git' 'bazel' 'python-numpy' 'gcc5' 'cuda'
+             'cudnn6' 'python-pip' 'python-wheel' 'python-setuptools')
+optdepends=('tensorboard: Tensorflow visualization toolkit')
 source=("https://github.com/tensorflow/tensorflow/archive/v${pkgver}.tar.gz")
 sha512sums=('b74228a13537e4cbcf8781167480a0bccb2c1ecf7bf21a02e35a182e073395f919645205036fd2193d5a186cfa8a869ba32c04fa5bd8f82cbe0ad8e56926398b')
 
@@ -83,10 +85,6 @@
 
 package_python-tensorflow() {
   depends=(python python-protobuf)
-  optdepends=('python-werkzeug: for using tensorboard'
-              'python-bleach: for using tensorboard'
-              'python-numpy: for using tensorboard'
-              'python-markdown: for using tensorboard')
 
   cd ${srcdir}/tensorflow-${pkgver}
 
@@ -94,6 +92,12 @@
   pip install --ignore-installed --upgrade --root $pkgdir/ $WHEEL_PACKAGE --no-dependencies
   find ${pkgdir} -name __pycache__ -exec rm -r {} +
 
+  # tensorboard has been separated from upstream but they still install it with
+  # tensorflow. I don't know what kind of sense that makes but we have to clean
+  # it out from this pacakge.
+  rm -rf ${pkgdir}/usr/lib/python3.6/site-packages/tensorflow/contrib/tensorboard
+  rm -rf ${pkgdir}/usr/bin/tensorboard
+
   install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }
 
@@ -101,10 +105,6 @@
   depends=(python cuda cudnn6 python-pycuda python-protobuf)
   conflicts=(python-tensorflow)
   provides=(python-tensorflow)
-  optdepends=('python-werkzeug: for using tensorboard'
-              'python-bleach: for using tensorboard'
-              'python-numpy: for using tensorboard'
-              'python-markdown: for using tensorboard')
 
   cd ${srcdir}/tensorflow-${pkgver}-cuda
 
@@ -112,6 +112,12 @@
   pip install --ignore-installed --upgrade --root $pkgdir/ $WHEEL_PACKAGE --no-dependencies
   find ${pkgdir} -name __pycache__ -exec rm -r {} +
 
+  # tensorboard has been separated from upstream but they still install it with
+  # tensorflow. I don't know what kind of sense that makes but we have to clean
+  # it out from this pacakge.
+  rm -rf ${pkgdir}/usr/lib/python3.6/site-packages/tensorflow/contrib/tensorboard
+  rm -rf ${pkgdir}/usr/bin/tensorboard
+
   install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }
 



More information about the arch-commits mailing list