Date: Wednesday, November 23, 2022 @ 00:01:10 Author: kgizdov Revision: 1351973
upgpkg: python-pyarrow 10.0.0-1 Modified: python-pyarrow/trunk/PKGBUILD Deleted: python-pyarrow/trunk/tensorflow-abi.patch ----------------------+ PKGBUILD | 67 ++++++++++++++++++++++++++++--------------------- tensorflow-abi.patch | 17 ------------ 2 files changed, 39 insertions(+), 45 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-11-22 23:57:27 UTC (rev 1351972) +++ PKGBUILD 2022-11-23 00:01:10 UTC (rev 1351973) @@ -1,36 +1,41 @@ -# Maintainer: Bruno Pagani <[email protected]> +# Maintainer: Konstantin Gizdov <arch at kge dot pw> +# Contributor: Bruno Pagani <[email protected]> # Contributor: Guillaume Horel <[email protected]> _pkg=arrow -pkgname=python-pyarrow -pkgver=9.0.0 +_pkgname=pyarrow +pkgname="python-${_pkgname}" +pkgver=10.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-numpy) -makedepends=(git cmake cython python-setuptools python-setuptools-scm) -optdepends=(python-fsspec) -checkdepends=(python-brotli python-cffi python-hypothesis python-pandas python-pytest python-pytest-lazy-fixture python-pytz) -source=(https://archive.apache.org/dist/${_pkg}/${_pkg}-${pkgver}/apache-${_pkg}-${pkgver}.tar.gz{,.asc} - git+https://github.com/apache/arrow-testing.git - tensorflow-abi.patch) -sha256sums=('a9a033f0a3490289998f458680d19579cf07911717ba65afde6cb80070f7a9b5' - 'SKIP' - 'SKIP' - 'd20e9cef6b18d3801a1ac1db50808631bec8097be58c194d6b036a5773e14958') +depends=(arrow python-numpy python-setuptools-scm) +optdepends=('python-cffi: interact with C code' + 'python-pandas: Pandas integration' + 'python-fsspec: Filesystem Spec support') +makedepends=(git cmake cython python-build python-installer python-wheel python-cffi python-pandas) +checkdepends=(python-brotli python-hypothesis python-pandas python-pytest python-pytest-lazy-fixture python-pytz) +source=("https://archive.apache.org/dist/${_pkg}/${_pkg}-${pkgver}/apache-${_pkg}-${pkgver}".tar.gz{,.asc} + git+https://github.com/apache/arrow-testing.git) +b2sums=('86aeca485d4da48c61917a291aa5b67a9dae29ae6c3d3b243fbb421abc5b3c4181e13875176679f034411713ae90074f79b14ddfb5bcdae27ed0e5b90e7cd31e' + 'SKIP' + 'SKIP') validpgpkeys=(265F80AB84FE03127E14F01125BCCA5220D84079 # Krisztian Szucs (apache) <[email protected]> 08D3564B7C6A9CAFBFF6A66791D18FCF079F8007) # Kouhei Sutou <[email protected]> -prepare(){ - cd apache-${_pkg}-${pkgver} - patch -p1 < ../tensorflow-abi.patch +prepare() { + cd "${srcdir}/apache-${_pkg}-${pkgver}/python" + for _file in pyproject.toml requirements-build.txt requirements-wheel-build.txt; do + sed -e '/oldest-supported-numpy/d' -i "${_file}" + done } -build(){ - cd apache-${_pkg}-${pkgver}/python +build() { + cd "${srcdir}/apache-${_pkg}-${pkgver}/python" + export CXXFLAGS="${CXXFLAGS} -I${srcdir}/apache-${_pkg}-${pkgver}/cpp/src" ARROW_HOME=/usr \ PARQUET_HOME=/usr \ PYARROW_BUNDLE_ARROW_CPP_HEADERS=0 \ @@ -42,22 +47,24 @@ PYARROW_WITH_PLASMA=1 \ PYARROW_WITH_TENSORFLOW=1 \ PYARROW_WITH_ORC=1 \ - python setup.py build_ext --inplace + python -m build --wheel --no-isolation } -check(){ - cd apache-${_pkg}-${pkgver}/python - local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))') +check() { + cd "${srcdir}/apache-${_pkg}-${pkgver}/python" + local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))') + # rename source to avoid name clash + mv pyarrow _nopyarrow + PYTHONPATH="${PWD}/build/lib.linux-x86_64-cpython-${python_version}" \ ARROW_TEST_DATA="${srcdir}"/arrow-testing/data \ ARROW_HOME=/usr \ PARQUET_HOME=/usr \ - pytest -vv --color=yes pyarrow/tests \ - --deselect=pyarrow/tests/test_memory.py::test_env_var \ - --deselect=pyarrow/tests/test_misc.py::test_get_include + pytest -vv --color=yes -k 'not test_cython_api and not test_visit_strings and not test_env_var and not test_get_include' + mv _nopyarrow pyarrow } package(){ - cd apache-${_pkg}-${pkgver}/python + cd "${srcdir}/apache-${_pkg}-${pkgver}/python" ARROW_HOME=/usr \ PARQUET_HOME=/usr \ PYARROW_BUNDLE_ARROW_CPP_HEADERS=0 \ @@ -69,5 +76,9 @@ PYARROW_WITH_PLASMA=1 \ PYARROW_WITH_TENSORFLOW=1 \ PYARROW_WITH_ORC=1 \ - python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 + python -m installer --destdir="${pkgdir}" dist/*.whl + + # drop tests from install + local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))') + rm -rf "${pkgdir}/usr/lib/python${python_version}/site-packages/${_pkgname}/tests" } Deleted: tensorflow-abi.patch =================================================================== --- tensorflow-abi.patch 2022-11-22 23:57:27 UTC (rev 1351972) +++ tensorflow-abi.patch 2022-11-23 00:01:10 UTC (rev 1351973) @@ -1,17 +0,0 @@ ---- a/python/CMakeLists.txt -+++ b/python/CMakeLists.txt -@@ -191,10 +191,10 @@ - # where to put generated binaries - set(EXECUTABLE_OUTPUT_PATH "${BUILD_OUTPUT_ROOT_DIRECTORY}") - --if(PYARROW_USE_TENSORFLOW) -- # TensorFlow uses the old GLIBCXX ABI, so we have to use it too -- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0") --endif() -+#if(PYARROW_USE_TENSORFLOW) -+ ## TensorFlow uses the old GLIBCXX ABI, so we have to use it too -+ #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0") -+#endif() - - # Python and Numpy libraries - find_package(Python3Alt REQUIRED)
