[arch-commits] Commit in python-scipy/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Tue Nov 30 18:42:45 UTC 2021
Date: Tuesday, November 30, 2021 @ 18:42:45
Author: foutrelis
Revision: 1057893
archrelease: copy trunk to community-staging-x86_64
Added:
python-scipy/repos/community-staging-x86_64/
python-scipy/repos/community-staging-x86_64/PKGBUILD
(from rev 1057892, python-scipy/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-scipy/repos/community-staging-x86_64/PKGBUILD (from rev 1057892, python-scipy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-30 18:42:45 UTC (rev 1057893)
@@ -0,0 +1,45 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+# Contributor: Ray Rashif <schiv at archlinux.org>
+# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
+# Contributor: Bodor Dávid Gábor <david.gabor.bodor at gmail.com>
+# Contributor: Andrzej Giniewicz <gginiu at gmail.com>
+
+_name=scipy
+pkgname=python-scipy
+pkgver=1.7.3
+pkgrel=2
+pkgdesc='Open-source software for mathematics, science, and engineering'
+arch=(x86_64)
+url='https://www.scipy.org/'
+license=(BSD)
+depends=(python-numpy)
+provides=(scipy)
+makedepends=(gcc-fortran python-setuptools cython python-pythran pybind11)
+checkdepends=(python-pytest)
+optdepends=('python-pillow: for image saving module')
+source=(https://pypi.python.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz)
+sha256sums=('ab5875facfdef77e0a47d5fd39ea178b58e60e454a4c85aa1e52fcb80db7babf')
+
+build() {
+ cd scipy-${pkgver}
+ python setup.py config_fc build
+}
+
+check() {
+ cd scipy-${pkgver}
+ python setup.py config_fc install \
+ --prefix=/usr --root="$srcdir"/test --optimize=1
+ export PYTHONPATH="$srcdir"/test/usr/lib/python3.10/site-packages
+ cd ..
+ python -c "from scipy import test; test('full')"
+}
+
+package() {
+ cd scipy-$pkgver
+ python3 setup.py config_fc install \
+ --prefix=/usr --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list