37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Template file for 'python-pandas'
|
|
pkgname=python-pandas
|
|
version=0.16.2
|
|
revision=1
|
|
wrksrc="pandas-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
makedepends="
|
|
python-devel python3.4-devel python-numpy-devel python3.4-numpy-devel
|
|
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"
|
|
checksum=e01853dfe111f3aea005315573400b7216ddbabbf1f28d482a71217d67ae4f81
|
|
|
|
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
|
|
}
|
|
}
|