[arch-commits] Commit in (4 files)

Ángel Velásquez angvp at nymeria.archlinux.org
Sat Aug 17 07:50:40 UTC 2013


    Date: Saturday, August 17, 2013 @ 09:50:40
  Author: angvp
Revision: 193134

Add python-setuptools

Added:
  python-setuptools/
  python-setuptools/repos/
  python-setuptools/trunk/
  python-setuptools/trunk/PKGBUILD

----------+
 PKGBUILD |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

Added: python-setuptools/trunk/PKGBUILD
===================================================================
--- python-setuptools/trunk/PKGBUILD	                        (rev 0)
+++ python-setuptools/trunk/PKGBUILD	2013-08-17 07:50:40 UTC (rev 193134)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=0.9.8
+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)
+sha256sums=('42bf629a4b3a4933bb3cfacf6005c95b7494fd88cd62a7bad1a8c3e64647eb0c')
+
+#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"
+}


Property changes on: python-setuptools/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list