summaryrefslogtreecommitdiff
path: root/python-scikit-image
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-scikit-image
parentadc8fff0989b8783bb022e68a87d1bf4b0d49d0a (diff)
downloadarchlinuxewe.git.save-efc22702de0ff7fa08783283555af19359eafe8b.tar.xz
recompile all python packages
Diffstat (limited to 'python-scikit-image')
-rw-r--r--python-scikit-image/PKGBUILD49
1 files changed, 40 insertions, 9 deletions
diff --git a/python-scikit-image/PKGBUILD b/python-scikit-image/PKGBUILD
index 4fc6473f..9688ebfd 100644
--- a/python-scikit-image/PKGBUILD
+++ b/python-scikit-image/PKGBUILD
@@ -5,14 +5,38 @@
pkgbase=python-scikit-image
pkgname=('python2-scikit-image' 'python-scikit-image')
pkgver=0.14.0
-pkgrel=1
+pkgrel='2'
pkgdesc="Image processing routines for SciPy"
arch=('i686' 'x86_64')
url="http://scikit-image.org/"
license=('BSD')
+_deppy2=(
+ 'python2>=2.7'
+ 'python2<2.8'
+)
+_deppy=(
+ 'python>=3.7'
+ 'python<3.8'
+)
_depends=('python-scipy' 'python-matplotlib' 'python-networkx'
'python-pillow' 'python-pywavelets')
-makedepends=('cython2' 'cython' 'python2-six' 'python-six' "${_depends[@]}" "${_depends[@]/python-/python2-}")
+_makedepends=(
+ 'cython'
+ 'python-six'
+)
+_optdepends=(
+ 'python-pyqt4: for imshow(x, fancy=True) and skivi'
+ 'freeimage: for reading various types of image file formats'
+ 'python-pyamg: fast cg_mg mode of random walker segmentation'
+)
+makedepends=(
+ "${_deppy[@]}"
+ "${_deppy2[@]}"
+ "${_depends[@]}"
+ "${_depends[@]/python-/python2-}"
+ "${_makedepends[@]}"
+ "${_makedepends[@]/python-/python2-}"
+)
options=('!emptydirs')
source=(https://pypi.python.org/packages/fc/20/d3e736493b16e9455ce8579722d644b313814c599d5824d34e448845f746/scikit-image-${pkgver}.tar.gz)
sha512sums=('224a6af745e1eb7d38c425afa411a9baac3e9504b639233fd10300a55006c3babdf40a3e7ee124e81b327c9f06d0baf35d3f2ccf8f69d3d2d6a54be0e40132f9')
@@ -39,9 +63,13 @@ build() {
}
package_python2-scikit-image() {
- depends=("${_depends[@]/python-/python2-}")
- optdepends=('python2-pyqt4: for imshow(x, fancy=True) and skivi'
- 'freeimage: for reading various types of image file formats')
+ depends=(
+ "${_deppy2[@]}"
+ "${_depends[@]/python-/python2-}"
+ )
+ optdepends=(
+ "${_optdepends[@]/python-/python2-}"
+ )
cd "${srcdir}"/scikit-image-py2-$pkgver
python2 setup.py install --root="${pkgdir}"/ --optimize=1
@@ -50,10 +78,13 @@ package_python2-scikit-image() {
}
package_python-scikit-image() {
- depends=("${_depends[@]}")
- optdepends=('python-pyqt4: for imshow(x, fancy=True) and skivi'
- 'freeimage: for reading various types of image file formats'
- 'python-pyamg: fast cg_mg mode of random walker segmentation')
+ depends=(
+ "${_deppy2[@]}"
+ "${_depends[@]}"
+ )
+ optdepends=(
+ "${_optdepends[@]}"
+ )
cd "${srcdir}"/scikit-image-$pkgver
python setup.py install --root="${pkgdir}"/ --optimize=1