[arch-commits] Commit in python-setuptools/repos/extra-any (PKGBUILD PKGBUILD)
Felix Yan
fyan at archlinux.org
Sat Apr 4 09:36:22 UTC 2015
Date: Saturday, April 4, 2015 @ 11:36:22
Author: fyan
Revision: 235444
archrelease: copy trunk to extra-any
Added:
python-setuptools/repos/extra-any/PKGBUILD
(from rev 235443, python-setuptools/trunk/PKGBUILD)
Deleted:
python-setuptools/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 136 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 68 insertions(+), 68 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-04-04 09:35:39 UTC (rev 235443)
+++ PKGBUILD 2015-04-04 09:36:22 UTC (rev 235444)
@@ -1,68 +0,0 @@
-# $Id$
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-setuptools
-pkgname=('python-setuptools' 'python2-setuptools')
-pkgver=14.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=('bac53cd2594d3e30d788b7d0bfee091253e23b4afef90b3171ff24e015626932cfefd83076d44f1ebabd01f994252f726978b85c95b82c9c2721e925f216ee8a')
-
-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 235443, python-setuptools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-04-04 09:36:22 UTC (rev 235444)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=15.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=('ecefbd90d3733adfcf308b78ddb9490d99bebae30334436e6c0ea19edec27ccb26a159f2957e939e537f2c7ab5572524f32ab74b9e59684f1c5f2ebecf98b551')
+
+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"
+}
More information about the arch-commits
mailing list