[arch-commits] Commit in python-entrypoints/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 15:52:27 UTC 2020
Date: Monday, November 9, 2020 @ 15:52:27
Author: felixonmars
Revision: 747204
archrelease: copy trunk to community-staging-any
Added:
python-entrypoints/repos/community-staging-any/
python-entrypoints/repos/community-staging-any/PKGBUILD
(from rev 747203, python-entrypoints/trunk/PKGBUILD)
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Copied: python-entrypoints/repos/community-staging-any/PKGBUILD (from rev 747203, python-entrypoints/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 15:52:27 UTC (rev 747204)
@@ -0,0 +1,56 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-entrypoints
+pkgname=(python-entrypoints python2-entrypoints)
+_name=entrypoints
+pkgver=0.3
+pkgrel=4
+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=('3b2d456ff069b080aa95f162a53a6679'
+ 'c47396b6c43dadc81e25d29b9fac8bd3'
+ 'c5c61ea2e46a0c50ea08f4af7955a0b1')
+
+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.9/site-packages/entrypoints.py"
+ _dist="entrypoints-$pkgver.dist-info"
+ cd $_dist
+ for _i in ./*; do
+ install -Dm644 $_i "$pkgdir/usr/lib/python3.9/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