[arch-commits] Commit in (4 files)

Kyle Keen kkeen at archlinux.org
Mon Oct 10 16:39:45 UTC 2016


    Date: Monday, October 10, 2016 @ 16:39:45
  Author: kkeen
Revision: 191884

pkginit: python-jupyter_core-4.2.0-1

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

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

Added: python-jupyter_core/trunk/PKGBUILD
===================================================================
--- python-jupyter_core/trunk/PKGBUILD	                        (rev 0)
+++ python-jupyter_core/trunk/PKGBUILD	2016-10-10 16:39:45 UTC (rev 191884)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-jupyter_core
+pkgname=(python-jupyter_core python2-jupyter_core)
+pkgver=4.2.0
+pkgrel=1
+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=("https://github.com/jupyter/jupyter_core/archive/$pkgver.tar.gz")
+md5sums=('25c1fc68b1b73c0a2e616c76f02bf061')
+
+prepare() {
+  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"
+}
+
+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
+  rmdir bin
+}
+


Property changes on: python-jupyter_core/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list