Date: Friday, April 15, 2016 @ 09:02:23 Author: fyan Revision: 264988
archrelease: copy trunk to extra-any Added: python-setuptools/repos/extra-any/PKGBUILD (from rev 264987, python-setuptools/trunk/PKGBUILD) Deleted: python-setuptools/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 134 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 67 insertions(+), 67 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-04-15 07:02:05 UTC (rev 264987) +++ PKGBUILD 2016-04-15 07:02:23 UTC (rev 264988) @@ -1,67 +0,0 @@ -# $Id$ -# Maintainer: Angel Velasquez <an...@archlinux.org> -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-setuptools -pkgname=('python-setuptools' 'python2-setuptools') -pkgver=20.7.0 -pkgrel=1 -epoch=1 -pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages" -arch=('any') -license=('PSF') -url="http://pypi.python.org/pypi/setuptools" -makedepends=('python-packaging' 'python2-packaging') -checkdepends=('python-mock' 'python2-mock' 'python-pytest-runner' 'python2-pytest-runner' 'git') -source=("https://pypi.python.org/packages/source/s/setuptools/setuptools-$pkgver.tar.gz") -sha512sums=('6cfd139d7ab737777366093e76912e01d3e8f92ef8e6980a90ba733ea1ea0e4064f1dd32d4278eccc5140c92d087c43daaccf428592bb83b5163bcbe0353e08f') - -prepare() { - # We ship separated python{,2}-{packaging,six} packages. - rm -rv setuptools-$pkgver/pkg_resources/_vendor - - cp -a setuptools-${pkgver}{,-py2} - - cd "$srcdir"/setuptools-$pkgver - sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py - - cd "$srcdir"/setuptools-$pkgver-py2 - sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py -} - -build() { - cd "$srcdir"/setuptools-$pkgver - python3 setup.py build - - cd "$srcdir"/setuptools-$pkgver-py2 - python2 setup.py build -} - -check() { - # Workaround UTF-8 tests by setting LC_CTYPE - - cd "$srcdir"/setuptools-$pkgver - LC_CTYPE=en_US.utf8 python3 setup.py ptr - - cd "$srcdir"/setuptools-$pkgver-py2 - LC_CTYPE=en_US.utf8 python2 setup.py ptr -} - -package_python-setuptools() { - depends=('python-packaging') - provides=('python-distribute') - replaces=('python-distribute') - - cd "$srcdir"/setuptools-$pkgver - python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build -} - -package_python2-setuptools() { - depends=('python2-packaging') - provides=('python2-distribute' 'setuptools') - replaces=('python2-distribute' 'setuptools') - - cd "$srcdir"/setuptools-$pkgver-py2 - python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build - rm "$pkgdir"/usr/bin/easy_install -} Copied: python-setuptools/repos/extra-any/PKGBUILD (from rev 264987, python-setuptools/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-04-15 07:02:23 UTC (rev 264988) @@ -0,0 +1,67 @@ +# $Id$ +# Maintainer: Angel Velasquez <an...@archlinux.org> +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-setuptools +pkgname=('python-setuptools' 'python2-setuptools') +pkgver=20.8.0 +pkgrel=1 +epoch=1 +pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages" +arch=('any') +license=('PSF') +url="http://pypi.python.org/pypi/setuptools" +makedepends=('python-packaging' 'python2-packaging') +checkdepends=('python-mock' 'python2-mock' 'python-pytest-runner' 'python2-pytest-runner' 'git') +source=("https://pypi.python.org/packages/source/s/setuptools/setuptools-$pkgver.tar.gz") +sha512sums=('b5569e15edbcea21ee065c316fb184f9cbaa9daa1053c9eae3293e0e10ef53cf228c17d48ec057dc1c5c9a05c8d64148b8d576e4815fdb1f3aacc10938d8a2a2') + +prepare() { + # We ship separated python{,2}-{packaging,six} packages. + rm -rv setuptools-$pkgver/pkg_resources/_vendor + + cp -a setuptools-${pkgver}{,-py2} + + cd "$srcdir"/setuptools-$pkgver + sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py + + cd "$srcdir"/setuptools-$pkgver-py2 + sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py +} + +build() { + cd "$srcdir"/setuptools-$pkgver + python3 setup.py build + + cd "$srcdir"/setuptools-$pkgver-py2 + python2 setup.py build +} + +check() { + # Workaround UTF-8 tests by setting LC_CTYPE + + cd "$srcdir"/setuptools-$pkgver + LC_CTYPE=en_US.utf8 python3 setup.py ptr + + cd "$srcdir"/setuptools-$pkgver-py2 + LC_CTYPE=en_US.utf8 python2 setup.py ptr +} + +package_python-setuptools() { + depends=('python-packaging') + provides=('python-distribute') + replaces=('python-distribute') + + cd "$srcdir"/setuptools-$pkgver + python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build +} + +package_python2-setuptools() { + depends=('python2-packaging') + provides=('python2-distribute' 'setuptools') + replaces=('python2-distribute' 'setuptools') + + cd "$srcdir"/setuptools-$pkgver-py2 + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build + rm "$pkgdir"/usr/bin/easy_install +}