summaryrefslogtreecommitdiff
path: root/python-pyfftw
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-08-07 08:05:47 +0200
committerErich Eckner <git@eckner.net>2018-08-07 08:08:20 +0200
commitefc22702de0ff7fa08783283555af19359eafe8b (patch)
tree445c8511b65f62a649a4128868720eea497f100d /python-pyfftw
parentadc8fff0989b8783bb022e68a87d1bf4b0d49d0a (diff)
downloadarchlinuxewe.git.save-efc22702de0ff7fa08783283555af19359eafe8b.tar.xz
recompile all python packages
Diffstat (limited to 'python-pyfftw')
-rw-r--r--python-pyfftw/PKGBUILD39
1 files changed, 33 insertions, 6 deletions
diff --git a/python-pyfftw/PKGBUILD b/python-pyfftw/PKGBUILD
index 82b15b2e..7ae39b59 100644
--- a/python-pyfftw/PKGBUILD
+++ b/python-pyfftw/PKGBUILD
@@ -5,12 +5,33 @@ _pyname=pyFFTW
pkgname=("python-pyfftw" "python2-pyfftw")
pkgbase="python-pyfftw"
pkgver=0.10.4
-pkgrel=1
+pkgrel='2'
pkgdesc='A pythonic wrapper around FFTW.'
url='http://hgomersall.github.io/pyFFTW/'
-depends=('fftw')
-_depends=('python-numpy' 'python-scipy')
-makedepends=('python-setuptools' 'python2-setuptools' "${_depends[@]}" "${_depends[@]/python-/python2-}")
+_deppy2=(
+ 'python2>=2.7'
+ 'python2<2.8'
+)
+_deppy=(
+ 'python>=3.7'
+ 'python<3.8'
+)
+_depends=(
+ 'python-numpy'
+ 'python-scipy'
+ 'fftw'
+)
+_makedepends=(
+ 'python-setuptools'
+)
+makedepends=(
+ "${_deppy[@]}"
+ "${_deppy2[@]}"
+ "${_depends[@]}"
+ "${_depends[@]/python-/python2-}"
+ "${_makedepends[@]}"
+ "${_makedepends[@]/python-/python2-}"
+)
license=('BSD')
arch=('i686' 'x86_64')
source=("https://pypi.python.org/packages/c2/2e/b25edc6960fc837e915eb1b38e5f0e3013e32e90aff14a1d0f4556b3d145/pyFFTW-${pkgver}.tar.gz")
@@ -23,14 +44,20 @@ build() {
}
package_python-pyfftw() {
- depends+=("${_depends[@]}")
+ depends=(
+ "${_deppy[@]}"
+ "${_depends[@]}"
+ )
cd $srcdir/$_pyname-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-pyfftw() {
- depends+=("${_depends[@]/python-/python2-}")
+ depends=(
+ "${_deppy2[@]}"
+ "${_depends[@]/python-/python2-}"
+ )
cd $srcdir/$_pyname-$pkgver
python2 setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"