Bug 2413963 - python-scikit-learn FTBFS with Cython 3.2.0
Summary: python-scikit-learn FTBFS with Cython 3.2.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-scikit-learn
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Sergio Pascual
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2412614 2414622
TreeView+ depends on / blocked
 
Reported: 2025-11-11 02:43 UTC by Charalampos Stratakis
Modified: 2025-12-08 16:14 UTC (History)
5 users (show)

Fixed In Version: python-scikit-learn-1.8.0~rc1-1.fc44
Clone Of:
Environment:
Last Closed: 2025-12-08 16:14:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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