diff options
author | Britney Fransen <brfransen@gmail.com> | 2017-12-09 14:34:12 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2017-12-09 14:34:12 (GMT) |
commit | f06d8e1bedfcf6d424a4736d43f366d95fb33690 (patch) | |
tree | a78baa8ac9914820a0c470c391772bcdb9e17b4d /abs/core/python_modules/python-packaging/PKGBUILD | |
parent | ada13c3f17134c5885f686509d128080450efa1b (diff) | |
parent | e4b0dec19f02e6d8e995b19a22110cac26f07ac4 (diff) | |
download | linhes_pkgbuild-f06d8e1bedfcf6d424a4736d43f366d95fb33690.zip linhes_pkgbuild-f06d8e1bedfcf6d424a4736d43f366d95fb33690.tar.gz linhes_pkgbuild-f06d8e1bedfcf6d424a4736d43f366d95fb33690.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/python_modules/python-packaging/PKGBUILD')
-rw-r--r-- | abs/core/python_modules/python-packaging/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-packaging/PKGBUILD b/abs/core/python_modules/python-packaging/PKGBUILD new file mode 100644 index 0000000..c7e2b7a --- /dev/null +++ b/abs/core/python_modules/python-packaging/PKGBUILD @@ -0,0 +1,49 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-packaging +pkgname=(python2-packaging) +pkgver=16.8 +pkgrel=2 +pkgdesc="Core utilities for Python packages" +arch=('any') +url="https://github.com/pypa/packaging" +license=('Apache') +makedepends=('python2-setuptools' 'python2-pyparsing' 'git') +checkdepends=('python2-pytest-runner' 'python2-pretend' 'python2-coverage') +source=("git+https://github.com/pypa/packaging.git#tag=$pkgver") +md5sums=('SKIP') + +prepare() { + cp -a packaging{,-py2} +} + +build() { +# cd "$srcdir"/packaging +# python setup.py build + + cd "$srcdir"/packaging-py2 + python2 setup.py build +} + +check() { +# cd "$srcdir"/packaging +# python setup.py ptr + + cd "$srcdir"/packaging-py2 + python2 setup.py ptr +} + +package_python-packaging() { + depends=('python-pyparsing' 'python-six') + + cd "$srcdir"/packaging + python setup.py install --root "$pkgdir" +} + +package_python2-packaging() { + depends=('python2-pyparsing' 'python2-six') + + cd "$srcdir"/packaging-py2 + python2 setup.py install --root "$pkgdir" +} |