diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 23:15:27 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 09:35:45 -0300 |
commit | e626156b30b07a1863a83d1eeb40a9f07c9f388e (patch) | |
tree | 777d2b5bc9e06baa7667ca88f27132ed92dc1bd1 /community/py3-opencl | |
parent | 52e5602758ee2b44a17ef17904a0ed4bfb537ebd (diff) | |
download | aports-e626156b30b07a1863a83d1eeb40a9f07c9f388e.tar.bz2 aports-e626156b30b07a1863a83d1eeb40a9f07c9f388e.tar.xz |
community/py3-opencl: drop py2
Diffstat (limited to 'community/py3-opencl')
-rw-r--r-- | community/py3-opencl/APKBUILD | 51 |
1 files changed, 15 insertions, 36 deletions
diff --git a/community/py3-opencl/APKBUILD b/community/py3-opencl/APKBUILD index da6f69dc9f..df9b640ce9 100644 --- a/community/py3-opencl/APKBUILD +++ b/community/py3-opencl/APKBUILD @@ -1,55 +1,34 @@ # Contributor: Stuart Cardall <developer@it-offshore.co.uk> # Maintainer: Stuart Cardall <developer@it-offshore.co.uk> -pkgname=py-opencl -_pkgreal=${pkgname/-/} +pkgname=py3-opencl +_pkgreal=pyopencl pkgver=2019.1 -pkgrel=0 -pkgdesc="Python wrapper for OpenCL" +pkgrel=1 +pkgdesc="Python3 wrapper for OpenCL" url="https://pypi.python.org/pypi/pyopencl" arch="all" license="MIT" -depends="py-mako" -makedepends="python2-dev python3-dev py-setuptools py-numpy>=1.14.3-r1 ctags - libffi-dev mesa-dev opencl-headers opencl-icd-loader-dev py-cparser py-cffi - py-pybind11 py-numpy-dev" -checkdepends="py-six py-decorator pytest py-py" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="py3-appdirs py3-decorator py3-numpy py3-six py3-mako" +makedepends="python3-dev py3-setuptools ctags libffi-dev mesa-dev opencl-headers + opencl-icd-loader-dev py3-cparser py3-cffi py3-pybind11-dev py3-numpy-dev" +checkdepends="py3-pytest py3-py" source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" options="!check" # tests require python-theano which isn't packed yet +replaces="py-opencl" # Backwards compatibility +provides="py-opencl=$pkgver-r$pkgrel" # Backwards compatibility + build() { - python2 setup.py build python3 setup.py build } -package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - _py python3 - depends="${depends//py-/py3-}" -} - -_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" +check() { + python3 setup.py test } -check() { - python2 setup.py test +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="6a808799a4c065371ce41cc71fc5386ba5462e2a6b908f06f6062afe9c7b05d262fa13314398ba2effd83ed196871c7b2d0695d496c43b8217b33f2c43bba096 pyopencl-2019.1.tar.gz" |