[arch-commits] Commit in python-jupyter_core/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Wed May 13 19:48:50 UTC 2020


    Date: Wednesday, May 13, 2020 @ 19:48:50
  Author: jelle
Revision: 627769

remove unused python2 module

Modified:
  python-jupyter_core/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++--------------------------
 1 file changed, 4 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-13 19:39:44 UTC (rev 627768)
+++ PKGBUILD	2020-05-13 19:48:50 UTC (rev 627769)
@@ -1,26 +1,19 @@
 # Maintainer: Kyle Keen <keenerd at gmail.com>
 
-pkgbase=python-jupyter_core
-pkgname=(python-jupyter_core python2-jupyter_core)
+pkgname=python-jupyter_core
 pkgver=4.6.3
-pkgrel=1
+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')
+makedepends=('python-setuptools')
 source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/jupyter_core/archive/$pkgver.tar.gz")
 md5sums=('29a4969de5c6a79d35d4ad2857489268')
 
 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() {
@@ -27,7 +20,7 @@
   cd "$srcdir"
 }
 
-package_python-jupyter_core() {
+package() {
   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"
@@ -34,18 +27,3 @@
   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