Advertisement
Guest User

python-numpy-mkl

a guest
Apr 8th, 2022
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. # $Id: PKGBUILD 164237 2012-07-28 03:14:33Z stephane $
  2. # Maintainer: Vladimir Khodygo <khodygo == at == gmail.com>
  3. # Contributor: Ilya Elenskiy <elenskiy.ilya@gmail.com>
  4. # Contributor: Jan de Groot <jgc@archlinux.org>
  5. # Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
  6. # Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
  7. # Adapted to mkl by Simone Riva
  8.  
  9. pkgname=python-numpy-mkl
  10. pkgver=1.22.3
  11. pkgrel=1
  12. pkgdesc="Scientific tools for Python, compiled with Intel MKL"
  13. arch=('x86_64')
  14. license=('custom')
  15. url="http://numpy.scipy.org/"
  16. provides=("python-numpy=$pkgver")
  17. conflicts=('python-numpy')
  18. depends=('python' 'intel-oneapi-mkl')
  19. optdepends=('python-nose: testsuite')
  20. makedepends=('python-setuptools' 'gcc-fortran' 'python-nose' 'cython')
  21. checkdepends=('python-pytest' 'python-hypothesis')
  22. options=('staticlibs')
  23. source=("https://github.com/numpy/numpy/releases/download/v$pkgver/numpy-$pkgver.tar.gz")
  24. sha512sums=('59424fe1d0f8288adc21a19aef2c0d89aeddb737a27bc3ca02576978ff2d00ae71aef34846df28d84b7a546dd197cf52c865350b76b2432333cf46218d502a0d')
  25.  
  26. build() {
  27. source /opt/intel/oneapi/setvars.sh
  28. cd numpy-$pkgver
  29. python setup.py build
  30. }
  31.  
  32. check() {
  33. # TODO: Fix fortran tests here (it works fine after installation)
  34. cd numpy-$pkgver
  35. python setup.py install --root="$PWD/tmp_install" --optimize=1
  36. cd "$PWD/tmp_install"
  37. PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python3.10/site-packages:$PYTHONPATH" python -c 'import numpy; numpy.test()'
  38. }
  39.  
  40. package() {
  41. cd numpy-$pkgver
  42. python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
  43.  
  44. install -m755 -d "${pkgdir}/usr/share/licenses/python-numpy"
  45. install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-numpy/"
  46. }
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement