Build failure with Python 3.13
The Python code uses _Py_IsFinalizing, but that's been renamed to Py_IsFinalizing in Python 3.13. Here's an Apache Arrow issue and PR that explains the problem and how to fix it.
@bendk can i take this issue ?
Sure, please do.
@bendk Correct if i am wrong but from what i understand when the PR was created and looking up the background info i am given to understand that i should take these steps to track the issue.
- Check the version gated #define for Py_IsFinalizing.
- Check if the pythoncapi-compat is breaking anything for transition _Py_isFinalizing -> Py_IsFinalizing If you can provide more info on this it would be really helpful Thanks
I think you can do the same steps as the PR:
- Change
_Py_isFinalizingtoPy_IsFinalizing - Add a
#definewith a version check that definesPy_IsFinalizingfor older python versions.
Oka i will start from header files.
opening a PR
@bendk PR submitted please let me know if there are any other changes too i have to make. Thanks!
Great! It looks good to me, but I'm just a user of the library. I don't have the power to approve the PR. Hopefully someone from facebook will.
Also just ran into this issue (while building on Arch Linux). Would appreciate this being fixed.