[arch-commits] Commit in python-setuptools/repos/extra-any (PKGBUILD PKGBUILD)
Felix Yan
fyan at archlinux.org
Thu Apr 16 04:37:40 UTC 2015
Date: Thursday, April 16, 2015 @ 06:37:40
Author: fyan
Revision: 237217
archrelease: copy trunk to extra-any
Added:
python-setuptools/repos/extra-any/PKGBUILD
(from rev 237216, 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-16 04:37:20 UTC (rev 237216)
+++ PKGBUILD 2015-04-16 04:37:40 UTC (rev 237217)
@@ -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=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"
-}
Copied: python-setuptools/repos/extra-any/PKGBUILD (from rev 237216, python-setuptools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-04-16 04:37:40 UTC (rev 237217)
@@ -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.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=('e8a1d462b54837983a0d9ff69d82014badd44a48bfab0b2575c5a602664b57e4f013e8b55150288b3aa8f1703244bab18d61de051646d8adc765d3689f2f0d9c')
+
+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