summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3773e10643836398717c8515e9f1482b08f0d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer of this PKBGUILD file: Martino Pilia <martino.pilia@gmail.com>
_components='itk itk-segmentation itk-io itk-registration itk-core itk-numerics itk-filtering'
_py=cp36
pkgname=python-itk
pkgver=4.13.0
pkgrel=1
pkgdesc='ITK is an open-source toolkit for multidimensional image analysis'
arch=('x86_64')
url='https://itk.org/'
license=('apache')
depends=('python-numpy')
makedepends=('python-pip')
options=('!strip')
optdepends=()
source=()
md5sums=('180434248774211ac5043128fee8cee1'
         '3db37ab06ceb902f53947bbbfbedc4f1'
         'ae569328ce51f522d2d6722e8762601f'
         '717c5d6f218716c3f20cf7a029077a7e'
         'bfdfd8d37b066bdbdc8b3d0f61aa0e22'
         'da955cbd76229f891f1a678e149d47a2'
         '927919dd02c23dd86266576c238aaed0')

for _name in $_components; do
	source+=("https://files.pythonhosted.org/packages/$_py/${_name::1}/$_name/${_name/-/_}-$pkgver-$_py-${_py}m-manylinux1_x86_64.whl")
done


package() {
    
    # NOTE
	# The official Python wheel does not wrap all image types.
	# To have them, ITK must be built from source using the
	# package insight-toolkit, enabling Python wrapping and
	# additional components to be wrapped in the CMake config.
    
	PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps *.whl
}