summaryrefslogtreecommitdiff
path: root/community/python-bottleneck/PKGBUILD
blob: d8a91a082c880b99e4d301bf1cf3ead79a31ba13 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $Id: PKGBUILD 112744 2014-06-05 22:38:40Z aginiewicz $
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
# Contributor: Michael Schubert <mschu.dev at gmail>
# Contributor: Panagiotis Mavrogiorgos (pmav99) <> (gmail)

pkgbase=python-bottleneck
pkgname=('python2-bottleneck' 'python-bottleneck')
pkgver=0.8.0
pkgrel=1
pkgdesc="Fast NumPy array functions written in Cython"
arch=('i686' 'x86_64')
url="http://berkeleyanalytics.com/bottleneck/"
license=('BSD')
makedepends=('python2-setuptools' 'python-setuptools' 'python-numpy' 'python2-numpy')
source=("https://pypi.python.org/packages/source/B/Bottleneck/Bottleneck-${pkgver}.tar.gz")
md5sums=('1a363fa35ce521eebb838e1bd6520e24')

build() {
  cd "$srcdir"
  cp -a Bottleneck-${pkgver} Bottleneck-py2-${pkgver}

  msg "Building Python2"
  cd "$srcdir"/Bottleneck-py2-${pkgver}
  python2 setup.py build

  msg "Building Python3"
  cd "$srcdir"/Bottleneck-${pkgver}
  python setup.py build
}

package_python2-bottleneck() {
  depends=('python2-numpy')
  optdepends=('python2-nose: needed for integrated test suite'
              'python2-scipy: needed for integrated benchmarks')

  cd "$srcdir"/Bottleneck-py2-${pkgver}

  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1

  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

package_python-bottleneck() {
  depends=('python-numpy')
  optdepends=('python-nose: needed for integrated test suite'
              'python-scipy: needed for integrated benchmarks')

  cd "$srcdir"/Bottleneck-${pkgver}

  python setup.py install --skip-build --root="$pkgdir" --optimize=1

  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}