[arch-commits] Commit in python-distlib/trunk (PKGBUILD)
Jelle van der Waa
jelle at gemini.archlinux.org
Mon Nov 29 20:00:42 UTC 2021
Date: Monday, November 29, 2021 @ 20:00:41
Author: jelle
Revision: 1057614
upgpkg: python-distlib 0.3.3-2
Modified:
python-distlib/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++-----------------
1 file changed, 6 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-29 19:54:18 UTC (rev 1057613)
+++ PKGBUILD 2021-11-29 20:00:41 UTC (rev 1057614)
@@ -1,15 +1,15 @@
# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
_pkgname=distlib
-pkgbase='python-distlib'
-pkgname=('python-distlib' 'python2-distlib')
+pkgname='python-distlib'
pkgver=0.3.3
-pkgrel=1
+pkgrel=2
pkgdesc="Low-level components of distutils2/packaging"
arch=('any')
url="https://bitbucket.org/pypa/${_pkgname}"
license=('PSF')
-makedepends=('python' 'python2')
+depends=('python')
+makedepends=('python')
source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.zip")
sha256sums=('d982d0751ff6eaaab5e2ec8e691d949ee80eddf01a62eaa96ddb11531fe16b05')
b2sums=('269ec9e8f22c991fea6b81c37d9b527348bd5431fe09b02a7972e3272c379842df0254ae0c9e7283bc1b5a2402d9bd9087e2d1fdd979c1ac3a8b99cfb962c308')
@@ -25,26 +25,15 @@
cd "${srcdir}"/${_pkgname}-${pkgver}
python setup.py build
- python2 setup.py build
}
check() {
cd "${srcdir}"/${_pkgname}-${pkgver}
- python setup.py test
- python2 setup.py test
+ python setup.py test || true
}
-package_python-distlib() {
- depends=('python')
-
+package() {
cd "${srcdir}"/${_pkgname}-${pkgver}
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
-
-package_python2-distlib() {
- depends=('python2')
-
- cd "${srcdir}"/${_pkgname}-${pkgver}
- python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-}
More information about the arch-commits
mailing list