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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:55:14 UTC 2020


    Date: Monday, November 9, 2020 @ 15:55:14
  Author: felixonmars
Revision: 747230

archrelease: copy trunk to community-staging-any

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

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

Copied: python-distlib/repos/community-staging-any/PKGBUILD (from rev 747229, python-distlib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:55:14 UTC (rev 747230)
@@ -0,0 +1,50 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=distlib
+pkgbase='python-distlib'
+pkgname=('python-distlib' 'python2-distlib')
+pkgver=0.3.1
+pkgrel=2
+pkgdesc="Low-level components of distutils2/packaging"
+arch=('any')
+url="https://bitbucket.org/pypa/${_pkgname}"
+license=('PSF')
+makedepends=('python' 'python2')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.zip")
+sha256sums=('edf6116872c863e1aa9d5bb7cb5e05a022c519a4594dc703843343a9ddd9bff1')
+b2sums=('8fd78260ef56d2f356dd816b2c5b5e42104683cd893e8a3071e4b9865e3ceead64b37ec84c6a7be9d325844e48bb0411fb458f6ca71a8cfb8b86f9721d1ac855')
+
+prepare() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    rm distlib/*.exe
+
+}
+
+build() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+    python2 setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    PYTHONHASHSEED=0 python setup.py test
+    python2 setup.py test
+}
+
+package_python-distlib() {
+    depends=('python')
+
+    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