diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py3-astroid/APKBUILD (renamed from testing/py-astroid/APKBUILD) | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/testing/py-astroid/APKBUILD b/testing/py3-astroid/APKBUILD index 91e8fbabb9..10f4042059 100644 --- a/testing/py-astroid/APKBUILD +++ b/testing/py3-astroid/APKBUILD @@ -1,6 +1,6 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-astroid +pkgname=py3-astroid _pkgname=astroid pkgver=1.6.0 pkgrel=1 @@ -8,42 +8,18 @@ pkgdesc="A new abstract syntax tree from Python's ast" url="http://www.astroid.org/" arch="noarch" license="LGPL-2.0-or-later" -depends="py-logilab-common" +depends="py3-lazy-object-proxy py3-six py3-typed-ast py3-wrapt" replaces="py-logilab-astng" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { - cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 + python3 setup.py build } package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - depends="${depends//py-/py3-}" - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="6a384b2bd3b4ee686c2f9a69d10f4391e5950869d75808312b2715a620ba7caa706bd88a5e021ea2250cf16ff8013cf0b332faee0b07dd7b5e1baf11e65d0ac3 astroid-1.6.0.tar.gz" |