[arch-commits] Commit in python-entrypoints/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sat Jan 23 20:35:59 UTC 2021
Date: Saturday, January 23, 2021 @ 20:35:58
Author: jelle
Revision: 826900
Remove unrequired python2 module
Modified:
python-entrypoints/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++----------------------
1 file changed, 4 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-23 20:35:53 UTC (rev 826899)
+++ PKGBUILD 2021-01-23 20:35:58 UTC (rev 826900)
@@ -1,10 +1,9 @@
# Maintainer: Kyle Keen <keenerd at gmail.com>
-pkgbase=python-entrypoints
-pkgname=(python-entrypoints python2-entrypoints)
+pkgname=python-entrypoints
_name=entrypoints
pkgver=0.3
-pkgrel=5
+pkgrel=6
pkgdesc="Discover and load entry points from installed packages."
arch=('any')
url="https://github.com/takluyver/entrypoints"
@@ -11,7 +10,7 @@
#url="https://pypi.python.org/pypi/entrypoints"
license=('MIT')
depends=('python')
-makedepends=('python' 'python2-setuptools')
+makedepends=('python')
#makedepends=('python-pip')
# several sources because the WHL doesn't come with a license
# and pypi version is the only one with setup.py
@@ -22,18 +21,8 @@
'c47396b6c43dadc81e25d29b9fac8bd3'
'c5c61ea2e46a0c50ea08f4af7955a0b1')
-prepare() {
+package() {
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
@@ -47,10 +36,3 @@
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