Commit c18b3514 authored by Jakub Jirutka's avatar Jakub Jirutka

[various] rename python executable in APKBUILDs to python2

parent d6529c8d
......@@ -31,7 +31,7 @@ build() {
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="d53faecdc02292b648f554658d9bd99e arandr-0.1.9.tar.gz"
......
......@@ -18,12 +18,12 @@ builddir="$srcdir"/stativ-$pkgname-01a1f5320b0a
build() {
cd "$builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$builddir"
python setup.py install \
python2 setup.py install \
--prefix=/usr \
--root="$pkgdir" \
--optimize=1 || return 1
......
......@@ -29,12 +29,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="8ad412605bde0c65ee928429e8bebe8f beets-1.3.18.tar.gz"
......
......@@ -14,12 +14,12 @@ source="http://launchpad.net/${pkgname}/${pkgver%.*}/${pkgver}/+download/${pkgna
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --root="$pkgdir" || return 1
python2 setup.py install --root="$pkgdir" || return 1
}
doc() {
......
......@@ -25,20 +25,20 @@ source="certbot-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/v$pkg
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
acme() {
pkgdesc="ACME protocol implementation for Python"
depends="$_depends_acme"
cd "$_builddir"/acme
python setup.py build || return 1
python setup.py install --prefix=/usr --root="$subpkgdir" || return 1
python2 setup.py build || return 1
python2 setup.py install --prefix=/usr --root="$subpkgdir" || return 1
}
md5sums="23920103accbed8adc6e7e30b14581e2 certbot-0.9.3.tar.gz"
......
......@@ -29,13 +29,13 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build_man || return 1
python setup.py build || return 1
python2 setup.py build_man || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="2598d5c451012223aaedbbf18ff985f3 drbdmanage-0.95.tar.gz
......
......@@ -17,12 +17,12 @@ source="glances-$pkgver.tar.gz::https://github.com/nicolargo/glances/archive/v$p
builddir="$srcdir"/glances-$pkgver
build() {
cd "$builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
# Remove images and HTML doc depending on those
rm -rf "$pkgdir"/usr/share/doc/$pkgname/$pkgname-doc.html \
......
......@@ -46,11 +46,11 @@ py() {
cd "$_builddir"
cp -ar binding/python binding/python3 || return 1
cd binding/python
python ./setup.py build || return 1
python2 ./setup.py build || return 1
cd ../python3
python3 ./setup.py build || return 1
cd binding/python
python ./setup.py install --root "$subpkgdir" -O1 || return 1
python2 ./setup.py install --root "$subpkgdir" -O1 || return 1
cd ../python3
python3 ./setup.py install --root "$subpkgdir" -O1 || return 1
}
......
......@@ -31,12 +31,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="1bc31058991268e4cfdb44e9b6d8b3b3 naxsi-0.54.tar.gz
......
......@@ -17,12 +17,12 @@ source="http://code.liw.fi/debian/pool/main/o/$pkgname/${pkgname}_$pkgver.orig.t
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$builddir"
python setup.py install --prefix=/usr \
python2 setup.py install --prefix=/usr \
--root="$pkgdir" || return 1
}
......
......@@ -28,12 +28,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="edda25f3f0164a963dd89c0e3c619973 argh-0.26.2.tar.gz"
......
......@@ -17,13 +17,13 @@ builddir="$srcdir"/$_realname-$pkgver
build() {
cd "$builddir"
python setup.py build || return 1
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
cd "$builddir"
python setup.py install --root=$pkgdir/ --optimize=1 || return 1
python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1
python3 setup.py install --root=$pkgdir/ --optimize=1 || return 1
}
......
......@@ -25,12 +25,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 || return 1
}
md5sums="2d5b92117d958dcead94f9e17f54cd32 crcmod-1.7.tar.gz"
......
......@@ -28,12 +28,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="4fbea2c8d211c2bd49f239d76af4428e python2-pythondialog-3.3.0.tar.bz2"
......
......@@ -25,12 +25,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --root="$pkgdir" || return 1
python2 setup.py install --root="$pkgdir" || return 1
}
md5sums="16e06db0ef73a35b4bff4b9eed5699b5 python-distutils-extra-2.39.tar.gz"
......
......@@ -24,12 +24,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build
python2 setup.py build
}
package() {
cd "$_builddir"
python setup.py install --root "$pkgdir"
python2 setup.py install --root "$pkgdir"
}
md5sums="29c87a00f0d098b90f3ac6113ae6e52d django-appconf-1.0.1.tar.gz"
......
......@@ -24,12 +24,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build
python2 setup.py build
}
package() {
cd "$_builddir"
python setup.py install --root "$pkgdir"
python2 setup.py install --root "$pkgdir"
}
md5sums="274dd82a45ddd13e111852dd101a5924 django_compressor-1.5.tar.gz"
......
......@@ -18,12 +18,12 @@ source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname
_builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --root "$pkgdir" || return 1
python2 setup.py install --root "$pkgdir" || return 1
}
md5sums="0e0b48cd0bb59cbc5499dcbb4fe1fb90 Django-1.5.12.tar.gz"
......
......@@ -38,7 +38,7 @@ build() {
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
# python setup.py install --root="$pkgdir"
# python2 setup.py install --root="$pkgdir"
}
md5sums="2d13e2412948344b8375f5af4ced1c20 python-ethtool-0.7.tar.bz2
......
......@@ -19,12 +19,12 @@ _builddir=${srcdir}/${_pkgname}-${pkgver}
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="082fc277ab07fbf68397f75ed50ebb61 python-gpiozero-1.1.0.tar.gz"
......
......@@ -29,12 +29,12 @@ prepare() {
build() {
cd "$_builddir"
export PYTHON=python2.7
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="91f6d57dfc63cefa12c38eba3f09db09 pygraphviz-1.3rc2.tar.gz"
......
......@@ -27,7 +27,7 @@ build() {
package() {
cd "$_builddir"
python setup.py install --root="$pkgdir"
python2 setup.py install --root="$pkgdir"
}
md5sums="f2c7852f95862715f92e7d089dc3f2cf ipaddr-2.1.11.tar.gz"
......
......@@ -27,12 +27,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="dc73e534a0f85296eb300d591d873238 jellyfish-0.5.6.tar.gz"
......
......@@ -27,12 +27,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="d6125f3dce2ef000ca50b3121eb2de81 python-livereload-2.4.1.tar.gz"
......
......@@ -19,13 +19,13 @@ builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python setup.py build || return 1
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
cd "$builddir"
python setup.py install --root=$pkgdir/ --optimize=1 || return 1
python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1
python3 setup.py install --root=$pkgdir/ --optimize=1 || return 1
}
......
......@@ -27,12 +27,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="b7577b1eaa2a25915c7a963e0d2f80a5 ndg_httpsclient-0.4.0.tar.gz"
......
......@@ -33,13 +33,13 @@ build() {
cd "$_builddir"
export Atlas=None
LDFLAGS="$LDFLAGS -shared"
python setup.py build config_fc --fcompiler=gnu95 || return 1
python2 setup.py build config_fc --fcompiler=gnu95 || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" config_fc --fcompiler=gnu95 || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" config_fc --fcompiler=gnu95 || return 1
install -m755 -d "$pkgdir"/usr/share/licenses/custom/$pkgname
install -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/custom/$pkgname/LICENSE
}
......
......@@ -18,12 +18,12 @@ source="https://files.pythonhosted.org/packages/source/P/PyOpenGL-accelerate/$_p
builddir="$srcdir"/$_pkgreal
build() {
cd "$builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="04e52af352dd078275a2d5720c4afea2 PyOpenGL-accelerate-3.1.1a1.tar.gz"
......
......@@ -27,12 +27,12 @@ prepare() {
build() {
cd "$_builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="f7b6b8258728ca9aa2ef536b3f221baf parsedatetime-1.5.tar.gz"
......
......@@ -15,12 +15,12 @@ builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="9a1af5c605768ea5804b03b734ff0f82 py-pathtools-0.1.2.tar.gz"
......
......@@ -19,7 +19,7 @@ builddir="$srcdir/$_pkgname-$_pkgname-$pkgver"
build() {
cd "$builddir"
python setup.py build || return 1
python2 setup.py build || return 1
python3 setup.py build
}
......
......@@ -19,12 +19,12 @@ builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python setup.py build || return 1
python2 setup.py build || return 1
}
package() {
cd "$builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}