blob: 43c06d78631ba967e755bf69bd4410365e232239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname='python-pyarrow'
_pkgname='arrow-apache-arrow'
pkgver=2.0.0
pkgrel=1
pkgdesc="A columnar in-memory analytics layer for big data."
arch=('x86_64')
url="https://arrow.apache.org"
license=('Apache')
depends=('arrow')
checkdepends=('git' 'python-brotli' 'python-hypothesis' 'python-pytest' 'python-pytest-lazy-fixture' 'python-pytz')
optdepends=('python-fsspec')
makedepends=('cmake' 'cython' 'python-setuptools')
source=("https://github.com/apache/arrow/archive/apache-arrow-$pkgver.tar.gz"
"tensorflow-abi.patch")
sha256sums=('ea299df9cf440cfc43393ce12ee6d9a4c9d0dfa9fde33c3bc9b70ec25520a844'
'b6efa43faf51ea69a5e60ccbfc390caaab5c898025f08db79eda76de4bfbd09e')
prepare(){
cd "$_pkgname-$pkgver"
patch -p1 -i ../tensorflow-abi.patch
}
build(){
cd "$_pkgname-$pkgver/python"
ARROW_HOME=/usr PARQUET_HOME=/usr \
python setup.py build_ext --build-type=release \
--with-parquet --with-plasma --with-flight --with-tensor --with-orc \
--with-dataset \
--inplace
}
package(){
cd "$_pkgname-$pkgver/python"
ARROW_HOME=/usr PARQUET_HOME=/usr \
python setup.py build_ext --build-type=release \
--with-parquet --with-plasma --with-flight --with-tensor --with-orc \
install --root=$pkgdir
}
check(){
cd "$_pkgname-$pkgver"
git clone https://github.com/apache/arrow-testing.git testing
cd python
ARROW_TEST_DATA="$srcdir/arrow-apache-arrow-$pkgver/testing/data" PARQUET_HOME=/usr pytest pyarrow/tests
}
# vim:ts=2:sw=2:et:
|