[arch-commits] Commit in python-ipywidgets/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 13:47:17 UTC 2019
Date: Friday, October 25, 2019 @ 13:47:15
Author: foutrelis
Revision: 518887
archrelease: copy trunk to community-staging-any
Added:
python-ipywidgets/repos/community-staging-any/
python-ipywidgets/repos/community-staging-any/PKGBUILD
(from rev 518886, python-ipywidgets/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: python-ipywidgets/repos/community-staging-any/PKGBUILD (from rev 518886, python-ipywidgets/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 13:47:15 UTC (rev 518887)
@@ -0,0 +1,55 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-ipywidgets
+pkgname=(python-ipywidgets python2-ipywidgets)
+pkgver=7.5.1
+pkgrel=2
+pkgdesc="IPython widgets for the Jupyter Notebook"
+arch=('any')
+url="https://github.com/ipython/ipywidgets"
+license=('BSD')
+depends=('python' 'jupyter-widgetsnbextension')
+makedepends=('python-setuptools' 'python2-setuptools' 'npm' 'git')
+
+source=("$pkgname-$pkgver.tgz::https://github.com/ipython/ipywidgets/archive/$pkgver.tar.gz")
+md5sums=('fd7d28cfd8a1206e95e5161a1b924a91')
+
+prepare() {
+ cp -r "ipywidgets-$pkgver" "py2-ipywidgets-$pkgver"
+}
+
+build() {
+ cd "$srcdir/ipywidgets-$pkgver"
+ # needs node, downloads a lot of stuff, probably not reproducible
+ python3 setup.py build
+ #cd widgetsnbextension
+ #python3 setup.py build
+ #cd ..
+
+ cd "$srcdir/py2-ipywidgets-$pkgver"
+ python2 setup.py build
+ #cd widgetsnbextension
+ #python2 setup.py build
+}
+
+package_python-ipywidgets() {
+ cd "$srcdir/ipywidgets-$pkgver"
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ #cd widgetsnbextension
+ #python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+package_python2-ipywidgets() {
+ depends=('python2' 'jupyter-widgetsnbextension')
+ # weird depends because of shared files
+ cd "$srcdir/py2-ipywidgets-$pkgver"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ #cd widgetsnbextension
+ #python2 setup.py install --prefix=/usr --root="$pkgdir"
+
+ # remove shared files
+ #rm "$pkgdir/usr/share/jupyter/nbextensions/jupyter-js-widgets/extension.js"{,.map}
+}
+
More information about the arch-commits
mailing list