Commit eaf19f88 authored by Natanael Copa's avatar Natanael Copa
Browse files

Revert "testing/py-pandas new aport"

Package does not create the expected subpackages which results that
builders rebuilds it every time.

This reverts commit ba2edb73.
parent 70b3b188
# Contributor: Sasha Gerrand <alpine-pkgs@sgerrand.com>
# Maintainer: Sasha Gerrand <alpine-pkgs@sgerrand.com>
pkgname=py-pandas
_pkgname=pandas
pkgver=0.23.4
pkgrel=0
pkgdesc="Powerful data structures for data analysis, time series, and statistics"
url="http://pandas.pydata.org/"
arch="noarch"
license="BSD"
depends="python py-dateutil py-numpy py-tz"
makedepends="linux-headers py-numpy-dev py-setuptools python2-dev python3-dev"
install=""
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() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python="$1"
pkgdesc="$pkgdesc ${python#python}"
depends="$depends $python"
subpkgarch="all"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
replaces="$pkgname"
depends="${depends//py-/py2-}"
_py python2
}
_py3() {
depends="${depends//py-/py3-}"
_py python3
}
sha512sums="0c89db820a49e0cfb9764e64589ff9af819f9a53c01bd0254cd1b6dbd1e9fd452b2ff7c7330ede7623c7576589113e831a19a57c735562b55f90506df15805b9 pandas-0.23.4.tar.gz"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment