Date: Tuesday, March 12, 2019 @ 23:13:48 Author: sangy Revision: 440768
upgpkg: python-pyopencl 1:2018.2.5-1 - Drop: py2 support - Improve test harness using pytest Modified: python-pyopencl/trunk/PKGBUILD ----------+ PKGBUILD | 41 +++++++++++------------------------------ 1 file changed, 11 insertions(+), 30 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-03-12 23:11:44 UTC (rev 440767) +++ PKGBUILD 2019-03-12 23:13:48 UTC (rev 440768) @@ -3,8 +3,8 @@ _pypiname=pyopencl pkgbase=python-pyopencl -pkgname=('python2-pyopencl' 'python-pyopencl' 'pyopencl-headers') -pkgver=2018.2.4 +pkgname=('python-pyopencl' 'pyopencl-headers') +pkgver=2018.2.5 pkgrel=1 epoch=1 pkgdesc="A complete, object-oriented language binding of OpenCL to Python" @@ -14,36 +14,29 @@ depends=('opencl-icd-loader' 'opencl-headers' 'mesa' 'boost-libs') makedepends=('ctags' 'boost' 'python-setuptools' 'python2-setuptools' 'python-mako' 'python2-mako' 'python-numpy' 'python2-numpy' 'python-cffi' 'python2-cffi' 'git' 'pybind11') - checkdepends=('python-six' 'python2-six' 'python-appdirs' 'python2-appdirs') +checkdepends=('python-six' 'python2-six' 'python-appdirs' 'python2-appdirs' + 'python-pytest' 'python-pytools') source=("git+https://github.com/inducer/pyopencl.git?signed#tag=v${pkgver}.signed") validpgpkeys=("900A958D9A0ACA58B1468F2471AA298BCA171145") # Andreas Ratchke -sha256sums=('SKIP') +sha1sums=('SKIP') build() { - # we use git clone here to ensure the submodules intialize properly - # FIXME: I could do something more thorough later down the line - git clone pyopencl{,-python2} - cd "pyopencl" + git submodule init && git submodule update python3 ./configure.py --python-exe=python3 --cl-pretend-version=1.2 # --boost-python-libname=boost_python3 make - - cd "${srcdir}/pyopencl-python2" - python2 ./configure.py --python-exe=python2 --cl-pretend-version=1.2 # --boost-python-libname=boost_python - make } check(){ + # INFO: to avoid a PLATFORM_NOT_FOUND_KHR error here, you would have to install + # the driver of your specific video card in here + # checkdepends+=('amdgpu') cd pyopencl - make tests - - cd "$srcdir/pyopencl-python2" - make tests + PYTHONPATH="$PWD/build/lib.linux-x86_64-3.7/" make tests } package_python-pyopencl() { - depends+=('python' 'python-numpy' 'python-mako' 'python-pytools' - 'pyopencl-headers' 'python-setuptools' 'python-cffi') + depends+=('python' 'python-numpy' 'python-mako' 'python-pytools' 'pyopencl-headers' 'python-setuptools' 'python-cffi') cd pyopencl python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build @@ -53,18 +46,6 @@ install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } -package_python2-pyopencl() { - depends+=('python2' 'python2-numpy' 'python2-mako' 'python2-pytools' - 'pyopencl-headers' 'python2-setuptools' 'python2-cffi') - - cd pyopencl-python2 - python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build - - rm -fr "${pkgdir}/usr/include/" - - install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE -} - package_pyopencl-headers() { cd pyopencl