[arch-commits] Commit in python-entrypoints/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 18:36:52 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:36:52
  Author: foutrelis
Revision: 349040

archrelease: copy trunk to community-staging-any

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

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

Copied: python-entrypoints/repos/community-staging-any/PKGBUILD (from rev 349039, python-entrypoints/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 18:36:52 UTC (rev 349040)
@@ -0,0 +1,37 @@
+# $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"
+}
+



More information about the arch-commits mailing list