Advertisement
Guest User

python-scipy-mkl

a guest
Apr 8th, 2022
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. # Maintainer: Jingbei Li <i@jingbei.li>
  2. # Contributor: Thomas Dziedzic < gostrc at gmail >
  3. # Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
  4. # Contributor: Ray Rashif <schiv@archlinux.org>
  5. # Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
  6. # Contributor: Bodor Dávid Gábor <david.gabor.bodor@gmail.com>
  7. # Contributor: Andrzej Giniewicz <gginiu@gmail.com>
  8.  
  9. pkgname='python-scipy-mkl'
  10. pkgver=1.8.0
  11. pkgrel=1
  12. pkgdesc="SciPy is open-source software for mathematics, science, and engineering."
  13. arch=('x86_64')
  14. url="http://www.scipy.org/"
  15. license=('BSD')
  16. depends=('intel-oneapi-compiler' 'intel-oneapi-mkl' 'python-numpy')
  17. provides=("python-scipy=$pkgver")
  18. conflicts=('python-scipy')
  19. makedepends=('pybind11' 'python-setuptools' cython python-pythran gcc-fortran)
  20. checkdepends=('python-pytest')
  21. optdepends=('python-pillow: for image saving module')
  22. source=("https://github.com/scipy/scipy/releases/download/v${pkgver}/scipy-${pkgver}.tar.gz")
  23. sha512sums=('674652728ae76479d17189e6974895bb838a8e83b17b9fb91c5f86faebf2a1387e1466555ac5b51d05c293f9b31b9a72e634f5858105ea984ca94bd2f05bbb4c')
  24.  
  25. build() {
  26. source /opt/intel/oneapi/setvars.sh
  27. cd scipy-${pkgver}
  28. python setup.py config_fc build
  29. }
  30.  
  31. check() {
  32. cd scipy-${pkgver}
  33. python setup.py config_fc install --prefix=/usr --root="$srcdir"/test --optimize=1
  34. export PYTHONPATH="$srcdir"/test/usr/lib/python3.10/site-packages
  35. cd ..
  36. python -c "from scipy import test; test('full')"
  37. }
  38.  
  39. package() {
  40. cd scipy-$pkgver
  41. python3 setup.py config_fc install --prefix=/usr --root="$pkgdir" --optimize=1
  42.  
  43. install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
  44. }
  45.  
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement