Describe the bug, including details regarding any error messages, version, and platform.
_Py_IsFinalizing was removed in python/cpython#106400 and replaced with a public version in python/cpython#108032 .
This function is used 5 places in udf.cc for example:
|
~PythonUdfKernelState() { |
|
if (_Py_IsFinalizing()) { |
|
function->detach(); |
|
} |
|
} |
which prevents building on Python 3.13.
Presumably this will need to be version gated on the version of CPython, but I am not sure how you prefer to do that in arrow.
Component(s)
Python
Describe the bug, including details regarding any error messages, version, and platform.
_Py_IsFinalizingwas removed in python/cpython#106400 and replaced with a public version in python/cpython#108032 .This function is used 5 places in
udf.ccfor example:arrow/python/pyarrow/src/arrow/python/udf.cc
Lines 49 to 53 in 0ef7351
Presumably this will need to be version gated on the version of CPython, but I am not sure how you prefer to do that in arrow.
Component(s)
Python