Skip to content

Fix BLAS_Order.RowMajor import and similar in test_cython_blas with Cython 3.1 - #31301

Merged
ogrisel merged 1 commit into
scikit-learn:mainfrom
ogrisel:fix-test_cython_blas
May 5, 2025
Merged

ogrisel merged 1 commit into
scikit-learn:mainfrom
ogrisel:fix-test_cython_blas

Conversation

@ogrisel

@ogrisel ogrisel commented May 5, 2025 •

Copy link
Copy Markdown
Member

Follow-up on #31263.

Fixes #31296, #31284, #31283, #31269.

@github-actions

github-actions Bot commented May 5, 2025

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 1f90453. Link to the linter CI: here

@ogrisel

ogrisel commented May 5, 2025 •

Copy link
Copy Markdown
Member Author

Since the bug only impacts scikit-learn binaries built with Cython 3.1, there is probably no need to backport this fix to the 1.6 branch (unless we want to build a release a new scikit-learn 1.6.2 release with Cython 3.1 for some other reason than this bug).

@jeremiedbb jeremiedbb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Did you find a reason why it was valid before and now it's not documented somewhere ?

@jeremiedbb

Copy link
Copy Markdown
Member

It has to do with import vs cimport because there are other places where we cimport these enum values directly and it works fine. I'm okay with this workaround but that's an odd behavior from cython.

@ogrisel
ogrisel merged commit 2d66fd7 into scikit-learn:main May 5, 2025
@ogrisel
ogrisel deleted the fix-test_cython_blas branch May 5, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants