[arch-commits] Commit in python-pyarrow/trunk (PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Sun Oct 17 01:46:50 UTC 2021
Date: Sunday, October 17, 2021 @ 01:46:49
Author: archange
Revision: 1030633
upgpkg: python-pyarrow 5.0.0-1
Properly package the lib content (requires to not --skip-build, fixes FS#70162, FS#70611).
Use the appropriate options to not bundle what is already in arrow.
Modified:
python-pyarrow/trunk/PKGBUILD
----------+
PKGBUILD | 78 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 41 insertions(+), 37 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-17 01:08:29 UTC (rev 1030632)
+++ PKGBUILD 2021-10-17 01:46:49 UTC (rev 1030633)
@@ -1,67 +1,71 @@
# Maintainer: Bruno Pagani <archange at archlinux.org>
# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
-_pkg=arrow-apache-arrow
+_pkg=arrow
pkgname=python-pyarrow
-pkgver=3.0.0
+pkgver=5.0.0
pkgrel=1
pkgdesc="Columnar in-memory analytics layer for big data — Python module."
arch=(x86_64)
url="https://arrow.apache.org"
license=(Apache)
-depends=(arrow python)
-makedepends=(git cmake cython python-setuptools python-setuptools-scm python-numpy)
+depends=(arrow python-numpy)
+makedepends=(git cmake cython python-setuptools python-setuptools-scm)
optdepends=(python-fsspec)
-checkdepends=(python-brotli python-hypothesis python-pytest python-pytest-lazy-fixture python-pytz)
-source=(https://github.com/apache/arrow/archive/apache-arrow-${pkgver}.tar.gz
+checkdepends=(python-brotli python-cffi python-hypothesis python-pandas python-pytest python-pytest-lazy-fixture python-pytz)
+source=(https://downloads.apache.org/${_pkg}/${_pkg}-${pkgver}/apache-${_pkg}-${pkgver}.tar.gz{,.asc}
git+https://github.com/apache/arrow-testing.git
tensorflow-abi.patch)
-sha256sums=('fc461c4f0a60e7470a7c58b28e9344aa8fb0be5cc982e9658970217e084c3a82'
- 'SKIP'
- 'd20e9cef6b18d3801a1ac1db50808631bec8097be58c194d6b036a5773e14958')
+sha256sums=(c3b4313eca594c20f761a836719721aaf0760001af896baec3ab64420ff9910a
+ SKIP
+ SKIP
+ d20e9cef6b18d3801a1ac1db50808631bec8097be58c194d6b036a5773e14958)
+validpgpkeys=(265F80AB84FE03127E14F01125BCCA5220D84079) # Krisztian Szucs (apache) <szucs.krisztian at gmail.com>
prepare(){
- cd ${_pkg}-${pkgver}
- patch -Np1 -i ../tensorflow-abi.patch
+ cd apache-${_pkg}-${pkgver}
+ patch -Np1 < ../tensorflow-abi.patch
}
build(){
- cd ${_pkg}-${pkgver}/python
+ cd apache-${_pkg}-${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
+ PYARROW_BUNDLE_ARROW_CPP_HEADERS=0 \
+ PYARROW_BUNDLE_PLASMA_EXECUTABLE=0 \
+ PYARROW_WITH_HDFS=1 \
+ PYARROW_WITH_FLIGHT=1 \
+ PYARROW_WITH_DATASET=1 \
+ PYARROW_WITH_PARQUET=1 \
+ PYARROW_WITH_PLASMA=1 \
+ PYARROW_WITH_TENSORFLOW=1 \
+ PYARROW_WITH_ORC=1 \
+ python setup.py build_ext --inplace
}
check(){
- cd ${_pkg}-${pkgver}/python
+ cd apache-${_pkg}-${pkgver}/python
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
ARROW_TEST_DATA="${srcdir}"/arrow-testing/data \
+ ARROW_HOME=/usr \
PARQUET_HOME=/usr \
- pytest pyarrow/tests --deselect=pyarrow/tests/test_memory.py::test_env_var
+ pytest pyarrow/tests \
+ --deselect=pyarrow/tests/test_memory.py::test_env_var \
+ --deselect=pyarrow/tests/test_misc.py::test_get_include
}
package(){
- cd ${_pkg}-${pkgver}/python
+ cd apache-${_pkg}-${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 --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
-
- # Headers and binary already packaged in arrow
- local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
- rm -r "${pkgdir}"${site_packages}/pyarrow/{include/{arrow,plasma},plasma-store-server}
- ln -s /usr/include/arrow "${pkgdir}"${site_packages}/pyarrow/include/arrow
- ln -s /usr/include/plasma "${pkgdir}"${site_packages}/pyarrow/include/plasma
- ln -s /usr/bin/plasma-store-server "${pkgdir}"${site_packages}/pyarrow/plasma-store-server
+ PYARROW_BUNDLE_ARROW_CPP_HEADERS=0 \
+ PYARROW_BUNDLE_PLASMA_EXECUTABLE=0 \
+ PYARROW_WITH_HDFS=1 \
+ PYARROW_WITH_FLIGHT=1 \
+ PYARROW_WITH_DATASET=1 \
+ PYARROW_WITH_PARQUET=1 \
+ PYARROW_WITH_PLASMA=1 \
+ PYARROW_WITH_TENSORFLOW=1 \
+ PYARROW_WITH_ORC=1 \
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
}
More information about the arch-commits
mailing list