Mail archive
alpine-aports

[alpine-aports] [PATCH 8/8] testing/py-pandas: new aport

From: Ivan Tham <pickfire_at_riseup.net>
Date: Mon, 8 May 2017 00:59:15 +0800

http://pandas.pydata.org
Powerful Python data analysis toolkit
---
 testing/py-pandas/APKBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)
 create mode 100644 testing/py-pandas/APKBUILD
diff --git a/testing/py-pandas/APKBUILD b/testing/py-pandas/APKBUILD
new file mode 100644
index 0000000000..8c74e32f19
--- /dev/null
+++ b/testing/py-pandas/APKBUILD
_at_@ -0,0 +1,58 @@
+# Contributor: Ivan Tham <pickfire_at_riseup.net>
+# Maintainer: Ivan Tham <pickfire_at_riseup.net>
+pkgname=py-pandas
+_pkgname=pandas
+pkgver=0.20.1
+pkgrel=0
+pkgdesc="Powerful Python data analysis toolkit"
+url="http://pandas.pydata.org"
+arch="all"
+license="BSD"
+depends="py-numpy py-dateutil py-tz"
+makedepends="python3-dev python3-dev py-setuptools
+	cython2 cython3 py-numpy-dev"
+subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
+source="$_pkgname-$pkgver.tar.gz::https://github.com/pandas-dev/pandas/archive/v$pkgver.tar.gz"
+builddir="$srcdir/"$_pkgname-$pkgver
+
+build() {
+	cd "$builddir"
+	sudo ln -sf /usr/include/locale.h /usr/include/xlocale.h
+	python2 setup.py build
+	python3 setup.py build
+	sudo rm /usr/include/xlocale.h
+}
+
+check() {
+	cd "$builddir"
+	python2 setup.py check
+	python3 setup.py check
+}
+
+package() {
+	mkdir -p "$pkgdir"
+}
+
+_py() {
+	local python="$1"
+	pkgdesc="$pkgdesc (for $python)"
+	depends="$depends $python"
+	install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+	cd "$builddir"
+	$python setup.py install --prefix=/usr \
+		--root="$subpkgdir" --optimize=1
+}
+
+_py2() {
+	replaces="$pkgname"
+	depends="${depends//py-/py2-}"
+	_py python2
+}
+
+_py3() {
+	depends="${depends//py-/py3-}"
+	_py python3
+}
+
+sha512sums="8d72a8e0e61f9d836e5f625be4c90b8deea6b526773c668b56b2a6c25cd2ef380bab61c5848fed3ee34c27b1d872246b135948b5a48076efbdb242dee103dc0a  pandas-0.20.1.tar.gz"
-- 
2.12.2
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon May 08 2017 - 00:59:15 UTC