[arch-commits] Commit in python-entrypoints/repos/community-any (PKGBUILD PKGBUILD)

Kyle Keen kkeen at archlinux.org
Tue Aug 21 03:20:18 UTC 2018


    Date: Tuesday, August 21, 2018 @ 03:20:18
  Author: kkeen
Revision: 372944

archrelease: copy trunk to community-any

Added:
  python-entrypoints/repos/community-any/PKGBUILD
    (from rev 372943, python-entrypoints/trunk/PKGBUILD)
Deleted:
  python-entrypoints/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   95 +++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 58 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-21 03:20:04 UTC (rev 372943)
+++ PKGBUILD	2018-08-21 03:20:18 UTC (rev 372944)
@@ -1,37 +0,0 @@
-# $Id$
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-
-pkgname=python-entrypoints
-_name=entrypoints
-pkgver=0.2.3
-pkgrel=2
-pkgdesc="Discover and load entry points from installed packages."
-arch=('any')
-url="https://github.com/takluyver/entrypoints"
-#url="https://pypi.python.org/pypi/entrypoints"
-license=('MIT')
-depends=('python')
-#makedepends=('python-pip')
-# both sources because the WHL doesn't come with a license
-source=("$pkgname-$pkgver.tgz::https://github.com/takluyver/entrypoints/archive/$pkgver.tar.gz"
-        "https://files.pythonhosted.org/packages/py2.py3/e/$_name/$_name-$pkgver-py2.py3-none-any.whl")
-md5sums=('ad31adbe634709555c400de125098dc8'
-         'c33be165b1307ff873212a9fbcb0c015')
-
-# py2 version needs 'configparser'
-
-package() {
-  cd "$srcdir"
-  # pip actually doesn't do much and is remarkably slow
-  #pip install --compile --no-deps --ignore-installed --root="$pkgdir" *.whl
-  install -Dm644 entrypoints.py "$pkgdir/usr/lib/python3.7/site-packages/entrypoints.py"
-  _dist="entrypoints-$pkgver.dist-info"
-  cd $_dist
-  for _i in ./*; do
-    install -Dm644 $_i "$pkgdir/usr/lib/python3.7/site-packages/$_dist/$_i"
-  done
-
-  cd "$srcdir/entrypoints-$pkgver"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-

Copied: python-entrypoints/repos/community-any/PKGBUILD (from rev 372943, python-entrypoints/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-08-21 03:20:18 UTC (rev 372944)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-entrypoints
+pkgname=(python-entrypoints python2-entrypoints)
+_name=entrypoints
+pkgver=0.2.3
+pkgrel=3
+pkgdesc="Discover and load entry points from installed packages."
+arch=('any')
+url="https://github.com/takluyver/entrypoints"
+#url="https://pypi.python.org/pypi/entrypoints"
+license=('MIT')
+depends=('python')
+makedepends=('python' 'python2-setuptools')
+#makedepends=('python-pip')
+# several sources because the WHL doesn't come with a license
+# and pypi version is the only one with setup.py
+source=("$pkgname-$pkgver.tgz::https://github.com/takluyver/entrypoints/archive/$pkgver.tar.gz"
+        "https://files.pythonhosted.org/packages/py2.py3/e/$_name/$_name-$pkgver-py2.py3-none-any.whl"
+        "$pkgname-pypi-$pkgver.tgz::https://pypi.io/packages/source/e/$_name/$_name-$pkgver.tar.gz")
+md5sums=('ad31adbe634709555c400de125098dc8'
+         'c33be165b1307ff873212a9fbcb0c015'
+         '0d3ad1b0130d91e3596ef3a59f25a56c')
+
+prepare() {
+  cd "$srcdir"
+  cp -a entrypoints-$pkgver py2entrypoints-$pkgver
+}
+
+build() {
+  cd py2entrypoints-$pkgver
+  python2 setup.py build
+}
+
+package_python-entrypoints() {
+  cd "$srcdir"
+  # install is like this because of dist-info related bug report
+  # pip actually doesn't do much and is remarkably slow
+  #pip install --compile --no-deps --ignore-installed --root="$pkgdir" *.whl
+  install -Dm644 entrypoints.py "$pkgdir/usr/lib/python3.7/site-packages/entrypoints.py"
+  _dist="entrypoints-$pkgver.dist-info"
+  cd $_dist
+  for _i in ./*; do
+    install -Dm644 $_i "$pkgdir/usr/lib/python3.7/site-packages/$_dist/$_i"
+  done
+
+  cd "$srcdir/entrypoints-$pkgver"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-entrypoints() {
+  depends=('python2-configparser')
+  cd py2entrypoints-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+



More information about the arch-commits mailing list