[arch-commits] Commit in (4 files)
Eli Schwartz
eschwartz at archlinux.org
Thu May 17 20:45:48 UTC 2018
Date: Thursday, May 17, 2018 @ 20:45:47
Author: eschwartz
Revision: 324082
Add new package required for devendoring pip
Added:
python-distlib/
python-distlib/repos/
python-distlib/trunk/
python-distlib/trunk/PKGBUILD
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Added: python-distlib/trunk/PKGBUILD
===================================================================
--- python-distlib/trunk/PKGBUILD (rev 0)
+++ python-distlib/trunk/PKGBUILD 2018-05-17 20:45:47 UTC (rev 324082)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=distlib
+pkgbase='python-distlib'
+pkgname=('python-distlib' 'python2-distlib')
+pkgver=0.2.7
+pkgrel=1
+pkgdesc="Low-level components of distutils2/packaging"
+arch=('any')
+url="https://bitbucket.org/pypa/${_pkgname}"
+license=('PSF')
+makedepends=('python' 'python2')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.zip")
+sha256sums=('cd502c66fc27c535bab62dc4f482e403e2369c2c05281a79cc2d4e2f42a87f20')
+
+prepare() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ # https://bitbucket.org/pypa/distlib/issues/107/test-suite-failures
+ # patch misses the docs file...
+ sed -i 's/tatterdema/tatterdemalion/' tests/test_index.py
+}
+
+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
+}
Property changes on: python-distlib/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list