Bug 2245874
Summary: | python-greenlet fails to build with Python 3.13: error: #error "this header requires Py_BUILD_CORE define" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
Component: | python-greenlet | Assignee: | Kevin Fenzi <kevin> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 40 | CC: | apevec, code, hiwkby, igor.raits, kevin, ksurma, mhroncok, michel, shamardin, terjeros, terje.rosten, vstinner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-07-01 18:50:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2244836 |
Description
Karolina Surma
2023-10-24 12:18:29 UTC
/usr/include/python3.13/internal/pycore_frame.h:8:4: error: #error "this header requires Py_BUILD_CORE define" 8 | # error "this header requires Py_BUILD_CORE define" greenlet_greenlet.hpp includes Python internal/pycore_frame.h header. In Python 3.13, Py_BUILD_CORE macro must be defined to access this internal C API. I suppose that something like "#define Py_BUILD_CORE" should be added before this include: https://github.com/python-greenlet/greenlet/blob/edbdda27ab1983ac157b588dd0c04816cb31b0ea/src/greenlet/greenlet_greenlet.hpp#L26 I wrote https://github.com/python-greenlet/greenlet/pull/396 to port greenlet to Python 3.13. The issue was reported upstream: https://github.com/python-greenlet/greenlet/issues/392 This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40. Could you please take a look at this PR to backport https://github.com/python-greenlet/greenlet/pull/396 and consider merging it ASAP, since Python 3.13 rebuilds will soon begin in Rawhide? Thanks! https://src.fedoraproject.org/rpms/python-greenlet/pull-request/13 Looks good to me. Let me know if you would like me to merge and build, just merge, or leave everything for python mass rebuild... Fixed by: https://src.fedoraproject.org/rpms/python-greenlet/c/d426d412697fad13bd735496ac1a934e29ad2a72?branch=rawhide Built by: https://src.fedoraproject.org/rpms/python-greenlet/c/22f2807e01076ffcf67fb28f9934ad763bdcd233?branch=rawhide Great! That one was not tricky to solve, I'm happy that it works as expected :-) |