python-zodbpickle fails to build with Python 3.13.0a1. src/zodbpickle/_pickle_33.c:38:14: error: implicit declaration of function _PyObject_LookupAttrId did you mean _PyObject_HasAttrId? [-Werror=implicit-function-declaration] 38 | result = _PyObject_LookupAttrId(obj, id, &attr_val); | ^~~~~~~~~~~~~~~~~~~~~~ | _PyObject_HasAttrId src/zodbpickle/_pickle_33.c:875:5: error: implicit declaration of function ‘_Py_IDENTIFIER’ [-Werror=implicit-function-declaration] 875 | _Py_IDENTIFIER(write); | ^~~~~~~~~~~~~~ - _Py_IDENTIFIER has been removed from Python 3.13. The detailed list of the removed private C API functions can be found here: https://github.com/python/cpython/issues/106320 https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06560418-python-zodbpickle/ For all our attempts to build python-zodbpickle with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-zodbpickle/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
What are Python extensions supposed to use in place of _PyObject_GetAttrId, _PyObject_HasAttrId, and _PyObject_CallMethodId? I looked at https://github.com/python/cpython/pull/108593, but the answer is not obvious to me.
Victor, could you provide some pointers?
> Victor, could you provide some pointers? I created an upstream issue to discuss _Py_IDENTIFIER removal: https://github.com/python/cpython/issues/111484
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40.
Version 3.2 was released with support for python 3.13a3. Python 3.13a4 broke this package again, by adding an argument to _PyLong_AsByteArray, but I added a patch to fix that. The patched version 3.2 has been built in Rawhide.
Thank you! It built successfully in the test Copr too.