Date: Tuesday, May 18, 2021 @ 23:35:34
  Author: svenstaro
Revision: 936350

upgpkg: tensorboard 2.5.0-3: Fix tensorboard not accepting version of data 
server

Modified:
  tensorboard/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-05-18 23:34:03 UTC (rev 936349)
+++ PKGBUILD    2021-05-18 23:35:34 UTC (rev 936350)
@@ -3,7 +3,7 @@
 
 pkgname=tensorboard
 pkgver=2.5.0
-pkgrel=2
+pkgrel=3
 pkgdesc="TensorFlow's Visualization Toolkit"
 url='https://github.com/tensorflow/tensorboard'
 arch=('x86_64')
@@ -13,7 +13,7 @@
          'python-tensorboard_plugin_wit' 'absl-py')
 makedepends=('bazel' 'python-setuptools' 'tree' 'rust' 'python-pip')
 optdepends=('python-tensorflow: advanced features for TensorBoard')
-source=("${pkgname}-${pkgver}::https://github.com/tensorflow/tensorboard/archive/${pkgver}.tar.gz";)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tensorflow/tensorboard/archive/${pkgver}.tar.gz";)
 
sha512sums=('f2c8e9d23dbfab2f21e90034275593a8761596afa5bc464b45a43058daf914d6d11425869e8d66c6be7cf057da9f2f9bc464e9df1f0a4dbab23a8c07b39f7a4d')
 
 build() {
@@ -41,7 +41,7 @@
 
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 
-  pip install --root "$pkgdir" /tmp/*.whl
+  pip install --ignore-installed --root "$pkgdir" /tmp/*.whl
 
   cd pypackage
   python setup.py install --root="$pkgdir" --optimize=1
@@ -49,14 +49,7 @@
   rm -r "$pkgdir"/usr/lib/python3.9/site-packages/external/
 
   
_requires="$pkgdir"/usr/lib/python3.9/site-packages/tensorboard-${pkgver}-py3.9.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}
+  sed -i 's/tensorboard-data-server.*/tensorboard-data-server/' ${_requires}
 }
 
 # vim:set ts=2 sw=2 et:

Reply via email to