summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0fd2246a2bebecedfbafd2b23180675d4e3d2849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pkgname=python2-deap
pkgver=1.2.2
pkgrel=1
pkgdesc="Distributed Evolutionary Algorithms in Python"
arch=('any')
url="https://github.com/DEAP/deap"
license=('LGPL')
depends=('python2' 'python2-pysqlite')
optdepends=("python2-numpy: for CMA-ES" "python2-matplotlib: for visualization" "python2-scoop: for computation distribution")
source=("https://github.com/DEAP/deap/archive/$pkgver.tar.gz")
md5sums=('49a80a4033a6869a15cca24ea4982910')

package() {
  cd "deap-$pkgver"
  find . -name '*.py' -exec sed -i -e '1 s/python\s*$/python2/' {} \;
  python2 setup.py install --root="$pkgdir/" --optimize=1
}