[arch-commits] Commit in python-pip/repos (3 files)

Allan McRae allan at archlinux.org
Tue Oct 16 11:55:11 UTC 2012


    Date: Tuesday, October 16, 2012 @ 07:55:10
  Author: allan
Revision: 168871

db-move: moved python-pip from [staging] to [testing] (any)

Added:
  python-pip/repos/testing-any/
  python-pip/repos/testing-any/PKGBUILD
    (from rev 168833, python-pip/repos/staging-any/PKGBUILD)
Deleted:
  python-pip/repos/staging-any/

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

Copied: python-pip/repos/testing-any/PKGBUILD (from rev 168833, python-pip/repos/staging-any/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2012-10-16 11:55:10 UTC (rev 168871)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Contributor: Sebastien Binet <binet at lblbox>
+
+pkgname=('python-pip' 'python2-pip')
+pkgver=1.2.1
+pkgrel=2
+pkgdesc="An easy_install replacement for installing pypi python packages"
+url="http://www.pip-installer.org/"
+arch=('any')
+license=('MIT')
+makedepends=('python' 'python-distribute' 'python2' 'python2-distribute')
+source=(http://pypi.python.org/packages/source/p/pip/pip-${pkgver}.tar.gz)
+
+package_python-pip() {
+  depends=('python' 'python-distribute')
+
+  cd "$srcdir/pip-$pkgver"
+  python setup.py build
+  python setup.py install --prefix=/usr --root="$pkgdir"
+  
+  ln "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip3"
+
+  install -D -m644 LICENSE.txt \
+	  "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-pip() {
+  depends=('python2' 'python2-distribute')
+  conflicts=('python-pyinstall')
+  replaces=('python-pyinstall')
+
+  cd "$srcdir/pip-$pkgver"
+  python2 setup.py build
+  python2 setup.py install --prefix=/usr --root="$pkgdir"
+  
+  mv "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip2"
+  sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
+    ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
+  
+  install -D -m644 LICENSE.txt \
+	  "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+md5sums=('db8a6d8a4564d3dc7f337ebed67b1a85')
+sha256sums=('12a9302acfca62cdc7bc5d83386cac3e0581db61ac39acdb3a4e766a16b88eb1')




More information about the arch-commits mailing list