Date: Monday, December 29, 2014 @ 17:40:28 Author: fyan Revision: 228152
archrelease: copy trunk to extra-any Added: python-setuptools/repos/extra-any/PKGBUILD (from rev 228151, python-setuptools/trunk/PKGBUILD) Deleted: python-setuptools/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 140 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 70 insertions(+), 70 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2014-12-29 16:40:11 UTC (rev 228151) +++ PKGBUILD 2014-12-29 16:40:28 UTC (rev 228152) @@ -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=8.2.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' 'subversion') -source=("http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz") -sha512sums=('58325d322dca058865453b18e403f7913e8bdbcb52a908f74ac511c43cf4eeeeef50744471ec5738ced513c50a9947f5bb3eb0b3e9d18ba97b933142e0ca2b3c') - -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') - 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 228151, python-setuptools/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2014-12-29 16:40:28 UTC (rev 228152) @@ -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=9.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' 'subversion') +source=("http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz") +sha512sums=('6e8785dec7793fc10ef3ffcd9bb28cbcd3f63a1397e8bd5f211aca647194ca513d2333589b03c7efd150484d31f5350ab6a83039c877e1bdf32e2500d1593b14') + +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') + 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" +}