2015-08-26 10:36:26 +00:00
|
|
|
# Template file for 'python-pandas'
|
|
|
|
pkgname=python-pandas
|
2015-11-22 17:37:57 +00:00
|
|
|
version=0.17.1
|
|
|
|
revision=1
|
2015-08-26 10:36:26 +00:00
|
|
|
wrksrc="pandas-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
2015-11-20 07:18:06 +00:00
|
|
|
makedepends="python-devel python3.4-devel python-numpy python3.4-numpy
|
2015-08-26 10:36:26 +00:00
|
|
|
python-dateutil python3.4-dateutil python-pytz python3.4-pytz"
|
|
|
|
depends="python-numpy python-dateutil python-pytz"
|
|
|
|
pycompile_module="pandas"
|
|
|
|
short_desc="Python2 data analysis library"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
|
|
homepage="http://pandas.pydata.org/"
|
|
|
|
license="3-clause-BSD"
|
|
|
|
distfiles="${PYPI_SITE}/p/pandas/pandas-${version}.tar.gz"
|
2015-11-22 17:37:57 +00:00
|
|
|
checksum=cfd7214a7223703fe6999fbe34837749540efee1c985e6aee9933f30e3f72837
|
2015-08-26 10:36:26 +00:00
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
find pandas -type f -name '*.py' -exec sed -i '/^#!.*python$/d' {} +
|
|
|
|
}
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-pandas_package() {
|
|
|
|
depends="python3.4-numpy python3.4-dateutil python3.4-pytz"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="pandas"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
}
|