[arch-commits] Commit in (4 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Dec 11 12:33:34 UTC 2019


    Date: Wednesday, December 11, 2019 @ 12:33:34
  Author: svenstaro
Revision: 536880

Add python-opt_einsum from AUR as a dependency of python-tensorflow and friends

Added:
  python-opt_einsum/
  python-opt_einsum/repos/
  python-opt_einsum/trunk/
  python-opt_einsum/trunk/PKGBUILD

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

Added: python-opt_einsum/trunk/PKGBUILD
===================================================================
--- python-opt_einsum/trunk/PKGBUILD	                        (rev 0)
+++ python-opt_einsum/trunk/PKGBUILD	2019-12-11 12:33:34 UTC (rev 536880)
@@ -0,0 +1,25 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Adrien Wu <adrien.sf.wu at gmail.com>
+pkgname=python-opt_einsum
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="Optimizing einsum functions in NumPy, Tensorflow, Dask, and more with contraction order optimization"
+url="https://github.com/dgasmith/opt_einsum"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+_name=opt_einsum
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('edfada4b1d0b3b782ace8bc14e80618ff629abf53143e1e6bbf9bd00b11ece77')
+
+build() {
+  cd "$srcdir/$_name-$pkgver"
+  python setup.py build
+}
+
+package() {
+  cd "$srcdir/$_name-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list