Explicit use of Python 2 for Arch Linux
authorAndrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
Tue, 19 Oct 2010 17:45:55 +0400
changeset 126 7a5c5746d4f0
parent 125 3dc474919a89
child 127 67a0ead9bb59
Explicit use of Python 2 for Arch Linux
contrib/PKGBUILD
--- a/contrib/PKGBUILD	Sun Oct 17 15:30:28 2010 +0400
+++ b/contrib/PKGBUILD	Tue Oct 19 17:45:55 2010 +0400
@@ -2,18 +2,17 @@
 
 pkgname=python-opster
 pkgver=0.9.11
-pkgrel=2
+pkgrel=3
 pkgdesc="Python command line parsing speedster"
 arch=(any)
 url="http://hg.piranha.org.ua/opster/"
 license=('BSD')
-depends=('python')
+depends=('python2')
 source=("http://pypi.python.org/packages/source/o/opster/opster-$pkgver.tar.gz")
 md5sums=('24b2349fa3930eb17e28e6fc7cf78575')
 
 build() {
     cd "$srcdir/opster-$pkgver"
-    python setup.py build || return 1
-    python setup.py install --root=$pkgdir --optimize=1 || return 1
+    python2 setup.py build || return 1
+    python2 setup.py install --root=$pkgdir --optimize=1 || return 1
 }
-