# Contributor: Carlos Giraldo # Maintainer: Carlos Giraldo pkgname=py-pandas _pkgname=pandas pkgver=0.24.1 pkgrel=0 pkgdesc="Powerful data structures for data analysis, time series, and statistics" url="http://pandas.pydata.org/" arch="all" license="BSD-3-Clause" depends="py-dateutil py-numpy py-tz" makedepends="linux-headers py-numpy-dev python2-dev python3-dev py-setuptools" subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { python2 setup.py build python3 setup.py build } package() { mkdir -p "$pkgdir" } _py() { local python="$1" pkgdesc="$pkgdesc ${python#python}" depends="$depends $python" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { depends="${depends//py-/py2-}" depends="${depends//python/python2}" _py python2 } _py3() { depends="${depends//py-/py3-}" depends="${depends//python/python3}" _py python3 } sha512sums="15f75308f4c437ad0096c3a3d768563b071b3d8e55e1850a5ee0f980f56a9d8d1b9fed9d7707ba43e80052e6c5fea313ac1ad2687935f0ab37a16a68bf64ae19 pandas-0.24.1.tar.gz"