summaryrefslogtreecommitdiff
path: root/dev-python/pyarrow
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyarrow')
-rw-r--r--dev-python/pyarrow/Manifest3
-rw-r--r--dev-python/pyarrow/files/pyarrow-16.1.0-py313.patch60
-rw-r--r--dev-python/pyarrow/pyarrow-16.1.0.ebuild5
3 files changed, 66 insertions, 2 deletions
diff --git a/dev-python/pyarrow/Manifest b/dev-python/pyarrow/Manifest
index 570cdf5ec449..fe04aabbbce5 100644
--- a/dev-python/pyarrow/Manifest
+++ b/dev-python/pyarrow/Manifest
@@ -1,4 +1,5 @@
AUX pyarrow-16.1.0-numpy-2.patch 2950 BLAKE2B 89457b0b8c990b0fdc0409d72ef7326432a327dcd435277131e3bd2dd3506e3f3c8877edad37f318bac5627ff6c53c045115b5cfd91f887e21524b525aca4535 SHA512 5bd77755392f1cbfdc765a3bc713040cf75a9a4e824536a400f8c163633c41b1ebc38f4ba74be83e37c346789b34eb0a421bf549b4449ce31b613706effec859
+AUX pyarrow-16.1.0-py313.patch 1860 BLAKE2B c7cf4cd0357280a51bbaf87ba5405699ebe0ab3433b5b0b7c4d917eb0103231887a33d4286e9c13e4159c90560e4d7112ccd071fce69b79441fe974f46c488f8 SHA512 c519ceafa47879fc49eef33457a3aa87e7274002ac23d01dbaeb4d0ad9a29a241c7bc3739f555c9df20f8489c377c6730fe9686983dd0ac3a2fe847fad16701f
DIST apache-arrow-16.1.0.tar.gz 21707079 BLAKE2B 5541c364351e59e8164f2461546bce3ddc834d70b3a03b815b681187674bdd89ccfb7eb113bf9010c821845b0c1fa51f5321bfea5b20927e6364f6452ec980d2 SHA512 28975f59e1fdde2dba4afaf4a5ba934b63db3a7f27656e2aa0af0f0d2a046c9dbfa9a6082de94629c36d03809b296566a37ea65ec5a2fc17fedac7d21e272d31
-EBUILD pyarrow-16.1.0.ebuild 2513 BLAKE2B fe166d3baabfb11248dfb2f3be543331875b05cf0959dc4634e414fe60d8356fdd26df42bbb5eb0fbf66921c28d2141883c98d5a4316b8b68837d88f03849e60 SHA512 f56db57c2b6dc7900a2882d6afe0d5d1f0a15ceb4b3060d5e9392e4aaa6e208366eb6e1d0232063f72c348e0aaf22d0d9b073259fe5edb10a4239b2448304369
+EBUILD pyarrow-16.1.0.ebuild 2629 BLAKE2B 7f6daf44bc3d5aa3257559ee56367a91d9437f78314febfc4bd5b00bd61f5d6255f1ff46efb15a56df4a945f6e56b79e512ed090afec5187a3d31db9faf55aed SHA512 14946af7cb7e1b39ac6be8dc4ea5fc70abe3f8e5f86a294567204928b0f81b0e352dcc288ca251ee70a79340370e2bb5bbc2f7dde41b041c4937885ddca04392
MISC metadata.xml 555 BLAKE2B 5683205ece2b0266e5792f42ebd515c1822563d2705f046ebcabd1de71efc67800616303b2fc83ea8cac3395303178f13e859b7390adfcef23da8d687fc8d6a3 SHA512 61d8f5bcbdbe92b858d0aab3040cd3e8dcb33ba0c45808649e032a165d6826c1a489ae2cfbf8dca52eda82d5b24b4c3f74a9abd6f87d5ff72f6578cf7535c797
diff --git a/dev-python/pyarrow/files/pyarrow-16.1.0-py313.patch b/dev-python/pyarrow/files/pyarrow-16.1.0-py313.patch
new file mode 100644
index 000000000000..f3e0053dd003
--- /dev/null
+++ b/dev-python/pyarrow/files/pyarrow-16.1.0-py313.patch
@@ -0,0 +1,60 @@
+diff --git a/python/pyarrow/src/arrow/python/udf.cc b/python/pyarrow/src/arrow/python/udf.cc
+index e9b72a2592738..b6a862af8ca07 100644
+--- a/pyarrow/src/arrow/python/udf.cc
++++ b/pyarrow/src/arrow/python/udf.cc
+@@ -28,6 +28,10 @@
+ #include "arrow/util/checked_cast.h"
+ #include "arrow/util/logging.h"
+
++// Py_IsFinalizing added in Python 3.13.0a4
++#if PY_VERSION_HEX < 0x030D00A4
++#define Py_IsFinalizing() _Py_IsFinalizing()
++#endif
+ namespace arrow {
+ using compute::ExecSpan;
+ using compute::Grouper;
+@@ -47,7 +51,7 @@ struct PythonUdfKernelState : public compute::KernelState {
+ // function needs to be destroyed at process exit
+ // and Python may no longer be initialized.
+ ~PythonUdfKernelState() {
+- if (_Py_IsFinalizing()) {
++ if (Py_IsFinalizing()) {
+ function->detach();
+ }
+ }
+@@ -64,7 +68,7 @@ struct PythonUdfKernelInit {
+ // function needs to be destroyed at process exit
+ // and Python may no longer be initialized.
+ ~PythonUdfKernelInit() {
+- if (_Py_IsFinalizing()) {
++ if (Py_IsFinalizing()) {
+ function->detach();
+ }
+ }
+@@ -132,7 +136,7 @@ struct PythonTableUdfKernelInit {
+ // function needs to be destroyed at process exit
+ // and Python may no longer be initialized.
+ ~PythonTableUdfKernelInit() {
+- if (_Py_IsFinalizing()) {
++ if (Py_IsFinalizing()) {
+ function_maker->detach();
+ }
+ }
+@@ -173,7 +177,7 @@ struct PythonUdfScalarAggregatorImpl : public ScalarUdfAggregator {
+ };
+
+ ~PythonUdfScalarAggregatorImpl() override {
+- if (_Py_IsFinalizing()) {
++ if (Py_IsFinalizing()) {
+ function->detach();
+ }
+ }
+@@ -270,7 +274,7 @@ struct PythonUdfHashAggregatorImpl : public HashUdfAggregator {
+ };
+
+ ~PythonUdfHashAggregatorImpl() override {
+- if (_Py_IsFinalizing()) {
++ if (Py_IsFinalizing()) {
+ function->detach();
+ }
+ }
diff --git a/dev-python/pyarrow/pyarrow-16.1.0.ebuild b/dev-python/pyarrow/pyarrow-16.1.0.ebuild
index b2a9ed0139dd..0f95bb569a64 100644
--- a/dev-python/pyarrow/pyarrow-16.1.0.ebuild
+++ b/dev-python/pyarrow/pyarrow-16.1.0.ebuild
@@ -5,7 +5,7 @@ EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 multiprocessing
@@ -42,6 +42,8 @@ src_prepare() {
local PATCHES=(
# https://github.com/apache/arrow/pull/42099
"${FILESDIR}/${P}-numpy-2.patch"
+ # https://github.com/apache/arrow/pull/42034
+ "${FILESDIR}/${P}-py313.patch"
)
# cython's -Werror
@@ -86,6 +88,7 @@ python_test() {
tests/test_convert_builtin.py::test_array_to_pylist_roundtrip
tests/test_feather.py::test_roundtrip
tests/test_pandas.py::test_array_to_pandas_roundtrip
+ tests/test_types.py::test_hashing
)
cd "${T}" || die