Date: Saturday, January 17, 2015 @ 05:06:37 Author: fyan Revision: 229466
archrelease: copy trunk to extra-any Added: python-setuptools/repos/extra-any/PKGBUILD (from rev 229465, python-setuptools/trunk/PKGBUILD) Deleted: python-setuptools/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 136 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 68 insertions(+), 68 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2015-01-17 04:06:24 UTC (rev 229465) +++ PKGBUILD 2015-01-17 04:06:37 UTC (rev 229466) @@ -1,68 +0,0 @@ -# $Id$ -# Maintainer: Angel Velasquez <an...@archlinux.org> -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-setuptools -pkgname=('python-setuptools' 'python2-setuptools') -pkgver=11.3.1 -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' 'python2') -checkdepends=('python-mock' 'python2-mock' 'python-pytest' 'python2-pytest' 'git') -source=("http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz") -sha512sums=('6054cbbc92d74969df4d7059cebdf6a58b084a7f10ded591529a3bded200bcb9d02a66857bfd425bc1d301d12756d52dfaf52712aa7144587188614a89659c76') - -prepare() { - cp -a setuptools-${pkgver}{,-python2} - - 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}-python2 - sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py -} - -build() { - # Build python 3 module - cd "${srcdir}"/setuptools-${pkgver} - python3 setup.py build - - # Build python 2 module - cd "${srcdir}"/setuptools-${pkgver}-python2 - python2 setup.py build -} - -check() { - # Workaround UTF-8 tests by setting LC_CTYPE - - # Check python3 module - cd "${srcdir}"/setuptools-${pkgver} - LC_CTYPE=en_US.utf8 python3 setup.py ptr - - # Check python2 module - cd "${srcdir}"/setuptools-${pkgver}-python2 - LC_CTYPE=en_US.utf8 python2 setup.py ptr -} - -package_python-setuptools() { - depends=('python') - 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') - provides=('python2-distribute' 'setuptools') - replaces=('python2-distribute' 'setuptools') - - cd "${srcdir}/setuptools-${pkgver}-python2" - 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 229465, python-setuptools/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2015-01-17 04:06:37 UTC (rev 229466) @@ -0,0 +1,68 @@ +# $Id$ +# Maintainer: Angel Velasquez <an...@archlinux.org> +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-setuptools +pkgname=('python-setuptools' 'python2-setuptools') +pkgver=12.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' 'python2') +checkdepends=('python-mock' 'python2-mock' 'python-pytest' 'python2-pytest' 'git') +source=("http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz") +sha512sums=('97b2969674c2d8f766a6a6ea97a2a7407504c28566de3f6d116f5f564886e0322e2fbdb66af212c1013348b92418d22baf118057f2b6902a095767ab442c1bf7') + +prepare() { + cp -a setuptools-${pkgver}{,-python2} + + 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}-python2 + sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py +} + +build() { + # Build python 3 module + cd "${srcdir}"/setuptools-${pkgver} + python3 setup.py build + + # Build python 2 module + cd "${srcdir}"/setuptools-${pkgver}-python2 + python2 setup.py build +} + +check() { + # Workaround UTF-8 tests by setting LC_CTYPE + + # Check python3 module + cd "${srcdir}"/setuptools-${pkgver} + LC_CTYPE=en_US.utf8 python3 setup.py ptr + + # Check python2 module + cd "${srcdir}"/setuptools-${pkgver}-python2 + LC_CTYPE=en_US.utf8 python2 setup.py ptr +} + +package_python-setuptools() { + depends=('python') + 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') + provides=('python2-distribute' 'setuptools') + replaces=('python2-distribute' 'setuptools') + + cd "${srcdir}/setuptools-${pkgver}-python2" + python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + rm "${pkgdir}/usr/bin/easy_install" +}