aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-simplejson
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2018-04-23 00:20:12 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-04-25 20:27:35 +0000
commit2d63d211a8c686e6397cc29e2b90a4ae4c1d151c (patch)
treea11811b97ca4df8fcbc408e52765736046684830 /main/py-simplejson
parentf4cf6f437642d6dbd0366744bb8aa0567ea06b72 (diff)
downloadaports-2d63d211a8c686e6397cc29e2b90a4ae4c1d151c.tar.bz2
aports-2d63d211a8c686e6397cc29e2b90a4ae4c1d151c.tar.xz
main/py-simplejson: improve abuild
Diffstat (limited to 'main/py-simplejson')
-rw-r--r--main/py-simplejson/APKBUILD16
1 files changed, 8 insertions, 8 deletions
diff --git a/main/py-simplejson/APKBUILD b/main/py-simplejson/APKBUILD
index ea23df417b..8b596ee1f3 100644
--- a/main/py-simplejson/APKBUILD
+++ b/main/py-simplejson/APKBUILD
@@ -5,23 +5,23 @@ _pkgname=simplejson
pkgver=3.14.0
pkgrel=0
pkgdesc="Simple, fast, extensible JSON encoder/decoder for Python"
-url="https://pypi.python.org/pypi/simplejson/"
+url="https://pypi.python.org/pypi/simplejson"
arch="all"
license="MIT"
depends=""
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+makedepends="py-setuptools python2-dev python3-dev"
+subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
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
- python2 setup.py test || return 1
+ python2 setup.py build
+ python2 setup.py test
- python3 setup.py build || return 1
- python3 setup.py test || return 1
+ python3 setup.py build
+ python3 setup.py test
}
package() {
@@ -43,7 +43,7 @@ _py() {
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir" || return 1
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
rm -Rf "$subpkgdir"/usr/lib/python*/site-packages/simplejson/tests/
}