Date: Tuesday, September 30, 2014 @ 02:53:18 Author: fyan Revision: 223696
archrelease: copy trunk to extra-any Added: python-setuptools/repos/extra-any/PKGBUILD (from rev 223695, python-setuptools/trunk/PKGBUILD) Deleted: python-setuptools/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 140 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 70 insertions(+), 70 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2014-09-30 00:52:59 UTC (rev 223695) +++ PKGBUILD 2014-09-30 00:53:18 UTC (rev 223696) @@ -1,70 +0,0 @@ -# $Id$ -# Maintainer: Angel Velasquez <an...@archlinux.org> -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-setuptools -pkgname=('python-setuptools' 'python2-setuptools') -pkgver=6.0.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-pytest' 'python2-pytest') -source=("http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz") -sha512sums=('db650b4a9f077f5c9f5394da9e705a94e700be87faf025721ee7fdb9d96392260083565ac34af5573666d75ba0ccbe4521847224462994fcf5d070bc95a541c0') - -prepare() { - cp -a setuptools-${pkgver}{,-python2} - - cd "${srcdir}"/setuptools-${pkgver} - sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python3|" setuptools/tests/test_resources.py - 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/python|#!/usr/bin/python2|" setuptools/tests/test_resources.py - 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 test - - # Check python2 module - cd "${srcdir}"/setuptools-${pkgver}-python2 - LC_CTYPE=en_US.utf8 python2 setup.py test -} - -package_python-setuptools() { - depends=('python>=3.4') - 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>=2.7') - 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 223695, python-setuptools/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2014-09-30 00:53:18 UTC (rev 223696) @@ -0,0 +1,70 @@ +# $Id$ +# Maintainer: Angel Velasquez <an...@archlinux.org> +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-setuptools +pkgname=('python-setuptools' 'python2-setuptools') +pkgver=6.0.2 +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-pytest' 'python2-pytest') +source=("http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz") +sha512sums=('5d75ecd5944a5999495156c0db52ddc592cb6de0ab019ccd50b732058e29fe2a4f5d9bf36a7715c5d189aced5d8faba1b01b7d85824f10fec786cd8dcf4b1dac') + +prepare() { + cp -a setuptools-${pkgver}{,-python2} + + cd "${srcdir}"/setuptools-${pkgver} + sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python3|" setuptools/tests/test_resources.py + 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/python|#!/usr/bin/python2|" setuptools/tests/test_resources.py + 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 test + + # Check python2 module + cd "${srcdir}"/setuptools-${pkgver}-python2 + LC_CTYPE=en_US.utf8 python2 setup.py test +} + +package_python-setuptools() { + depends=('python>=3.4') + 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>=2.7') + 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" +}