1 # Contributor: Renato Coutinho <renato.coutinho@gmail.com>
5 pkgdesc="A solver for delay differential equations written in Python and C."
7 url="http://users.ox.ac.uk/~clme1073/python/PyDDE/"
9 depends=('python-numpy')
10 makedepends=('setuptools' 'python-numpy')
11 source=(http://users.ox.ac.uk/~clme1073/python/PyDDE/PyDDE-${pkgver}.tar.gz)
12 md5sums=('275eb5f15fb7124f06fef17655f63c12')
15 cd ${srcdir}/PyDDE-${pkgver}
16 ln -s /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ PyDDE/src/numpy
17 sed -i 's#<numpy/arrayobject.h>#"numpy/arrayobject.h"#' PyDDE/src/wrapper.c
18 sed -i 's/extra_compile_args=\[""\]/extra_compile_args=["-I."]/' setup.py
19 python2 setup.py install --prefix=/usr --root=${pkgdir} || return 1