[arch-commits] Commit in python-setuptools/repos/testing-any (PKGBUILD PKGBUILD)
Ángel Velásquez
angvp at nymeria.archlinux.org
Mon Sep 23 03:27:03 UTC 2013
Date: Monday, September 23, 2013 @ 05:27:03
Author: angvp
Revision: 194712
archrelease: copy trunk to testing-any
Added:
python-setuptools/repos/testing-any/PKGBUILD
(from rev 194711, python-setuptools/trunk/PKGBUILD)
Deleted:
python-setuptools/repos/testing-any/PKGBUILD
----------+
PKGBUILD | 134 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 67 insertions(+), 67 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2013-09-23 03:26:21 UTC (rev 194711)
+++ PKGBUILD 2013-09-23 03:27:03 UTC (rev 194712)
@@ -1,67 +0,0 @@
-# $Id$
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
-pkgbase=python-setuptools
-pkgname=('python-setuptools' 'python2-setuptools')
-pkgver=1.1.5
-pkgrel=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')
-source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
-md5sums=('8d2a7d43de8e1d1e1e92366cc9f93be2')
-
-#check() {
-# # Check python3 module
-# cd "${srcdir}"/setuptools-${pkgver}
-# python3 setup.py test
-#
-# # Check python2 module
-# cd "${srcdir}"/setuptools-${pkgver}-python2
-# python2 setup.py test
-#}
-
-prepare() {
- cd "${srcdir}"
-
- pushd setuptools-${pkgver}
- popd
-
- cp -a setuptools-${pkgver}{,-python2}
-
- cd "${srcdir}"/setuptools-${pkgver}
- sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python3|" setuptools/tests/test_resources.py
-
- cd ../setuptools-${pkgver}-python2
- sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python2|" setuptools/tests/test_resources.py
-}
-
-build() {
- # Build python 3 module
- cd "${srcdir}"/setuptools-${pkgver}
- python3 setup.py build
-
- # Build python 2 module
- cd ../setuptools-${pkgver}-python2
- python2 setup.py build
-}
-
-package_python-setuptools() {
- depends=('python>=3.3')
- 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/testing-any/PKGBUILD (from rev 194711, python-setuptools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2013-09-23 03:27:03 UTC (rev 194712)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=1.1.6
+pkgrel=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')
+source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
+
+#check() {
+# # Check python3 module
+# cd "${srcdir}"/setuptools-${pkgver}
+# python3 setup.py test
+#
+# # Check python2 module
+# cd "${srcdir}"/setuptools-${pkgver}-python2
+# python2 setup.py test
+#}
+
+prepare() {
+ cd "${srcdir}"
+
+ pushd setuptools-${pkgver}
+ popd
+
+ cp -a setuptools-${pkgver}{,-python2}
+
+ cd "${srcdir}"/setuptools-${pkgver}
+ sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python3|" setuptools/tests/test_resources.py
+
+ cd ../setuptools-${pkgver}-python2
+ sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python2|" setuptools/tests/test_resources.py
+}
+
+build() {
+ # Build python 3 module
+ cd "${srcdir}"/setuptools-${pkgver}
+ python3 setup.py build
+
+ # Build python 2 module
+ cd ../setuptools-${pkgver}-python2
+ python2 setup.py build
+}
+
+package_python-setuptools() {
+ depends=('python>=3.3')
+ 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"
+}
+md5sums=('ee82ea53def4480191061997409d2996')
More information about the arch-commits
mailing list