Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1982081 - Cython generates wrong code with the newest python
Summary: Cython generates wrong code with the newest python
Alias: None
Product: Fedora
Classification: Fedora
Component: Cython
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
Reported: 2021-07-14 07:27 UTC by andrii.verbytskyi
Modified: 2021-07-14 10:26 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-07-14 10:11:17 UTC
Type: Bug

Attachments (Terms of Use)

Description andrii.verbytskyi 2021-07-14 07:27:03 UTC
Description of problem:

It looks like the Cython available in rawhide python3-Cython 0.29.22-3.fc35
does not contain some bugfixes from the upstream
 and uses `_PyGen_Send` in the generated code for the newest python3 3.10.0~b4-1.fc35

How reproducible:

Some build logs from copr:

Comment 1 Miro Hrončok 2021-07-14 09:21:11 UTC
python3-Cython 0.29.22-3.fc35 includes fixes in

I've just verified that.

Comment 2 Miro Hrončok 2021-07-14 09:25:29 UTC
I've added to %prep:

rm $(grep -Flr '/* Generated by Cython')

And running a sratchbuild:

Comment 3 Miro Hrončok 2021-07-14 10:11:17 UTC
It built fine. It only fails when it uses pre-generated sources.

See also

Comment 4 andrii.verbytskyi 2021-07-14 10:26:27 UTC
Thank you!

Python packaging guidelines:  yes, I know that and the package should re-generate the bindings once the Cython was detected. If that did not happen -- that is a bug, but in the package, in Cython.

Thank you once again!


Note You need to log in before you can comment on or make changes to this bug.