[arch-commits] Commit in python-jupyter_core/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 04:09:59 UTC 2019
Date: Saturday, October 26, 2019 @ 04:09:58
Author: felixonmars
Revision: 519916
archrelease: copy trunk to community-staging-any
Added:
python-jupyter_core/repos/community-staging-any/
python-jupyter_core/repos/community-staging-any/PKGBUILD
(from rev 519915, python-jupyter_core/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-jupyter_core/repos/community-staging-any/PKGBUILD (from rev 519915, python-jupyter_core/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 04:09:58 UTC (rev 519916)
@@ -0,0 +1,51 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-jupyter_core
+pkgname=(python-jupyter_core python2-jupyter_core)
+pkgver=4.6.0
+pkgrel=2
+pkgdesc="Jupyter core package. A base package on which Jupyter projects rely."
+arch=('any')
+url="https://pypi.python.org/pypi/jupyter_core"
+license=('BSD')
+depends=('python-traitlets')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/jupyter_core/archive/$pkgver.tar.gz")
+md5sums=('b86b19c993707378e96aca57935ba180')
+
+prepare() {
+ cd "$srcdir/jupyter_core-$pkgver"
+
+ cd "$srcdir"
+ cp -r jupyter_core-$pkgver python2-jupyter_core-$pkgver
+
+ cd python2-jupyter_core-$pkgver
+ sed -i 's/env python$/&2/' jupyter_core/troubleshoot.py
+}
+
+build() {
+ cd "$srcdir"
+}
+
+package_python-jupyter_core() {
+ cd "$srcdir/jupyter_core-$pkgver"
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+ install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 examples/jupyter-completion.bash "$pkgdir/usr/share/bash-completion/completions/jupyter"
+ install -Dm644 examples/completions-zsh "$pkgdir/usr/share/zsh/site-functions/_jupyter"
+}
+
+package_python2-jupyter_core() {
+ # todo: figure out how to remove this, it probably shouldn't be used
+ depends=('python2-traitlets')
+
+ cd "$srcdir/python2-jupyter_core-$pkgver"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+ install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ cd "$pkgdir/usr"
+ rm bin/jupyter
+ rm bin/jupyter-migrate
+ rm bin/jupyter-troubleshoot
+ rmdir bin
+}
More information about the arch-commits
mailing list