Bug 2413963

Summary: python-scikit-learn FTBFS with Cython 3.2.0
Product: [Fedora] Fedora Reporter: Charalampos Stratakis <cstratak>
Component: python-scikit-learnAssignee: Sergio Pascual <sergio.pasra>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: besser82, epel-packagers-sig, igor.raits, jonathan, sergio.pasra
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-scikit-learn-1.8.0~rc1-1.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-12-08 16:14:23 UTC Type: ---
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: 2412614, 2414622    

Description Charalampos Stratakis 2025-11-11 02:43:44 UTC
Hello,

During impact testing of Cython 3.2.0 on Rawhide, python-scikit-learn failed to build.

One reason is due to the upper bound restriction to < 3.2.0. This can be fixed by adjustment to the SPEC file sed for Cython to something like:

sed -i -E 's|Cython>=3\.0\.10(,<[0-9.]+)?|Cython>=3.0.9|' pyproject.toml

However absolute imports are required now with the latest Cython and there are many pull requests upstream that can be quite a hurdle to backport: https://github.com/scikit-learn/scikit-learn/issues/32315

Best way to resolve this would be to either upgrade to a git snapshot or ping upstream for a new release.

Reproducible: Always

Comment 1 Charalampos Stratakis 2025-12-03 13:02:49 UTC
PR: https://src.fedoraproject.org/rpms/python-scikit-learn/pull-request/9

Comment 2 Fedora Update System 2025-12-08 16:10:40 UTC
FEDORA-2025-bef5fcd86d (python-scikit-learn-1.8.0~rc1-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bef5fcd86d

Comment 3 Fedora Update System 2025-12-08 16:14:23 UTC
FEDORA-2025-bef5fcd86d (python-scikit-learn-1.8.0~rc1-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.