Skip to content

BLD Add missing cython generator for a few extensions - #31346

Merged
lorentzenchr merged 2 commits into
scikit-learn:mainfrom
lesteve:fix-sklearn-utils-meson
May 9, 2025
Merged

lorentzenchr merged 2 commits into
scikit-learn:mainfrom
lesteve:fix-sklearn-utils-meson

Conversation

@lesteve

@lesteve lesteve commented May 9, 2025 •

Copy link
Copy Markdown
Member

Follow-up of #31212 noticed in #31342.

I found all of them through the following git grep. The remaining matches are custom_target:

❯ git grep '\.pyx' -- **/meson.build | grep -v process | grep -P '\w+\.pyx'
sklearn/_loss/meson.build:  output: '_loss.pyx',
sklearn/_loss/meson.build:  input: '_loss.pyx.tp',
sklearn/metrics/_pairwise_distances_reduction/meson.build:  output: '_datasets_pair.pyx',
sklearn/metrics/_pairwise_distances_reduction/meson.build:  input: '_datasets_pair.pyx.tp',
sklearn/metrics/_pairwise_distances_reduction/meson.build:  output: '_base.pyx',
sklearn/metrics/_pairwise_distances_reduction/meson.build:  input: '_base.pyx.tp',
sklearn/metrics/_pairwise_distances_reduction/meson.build:  output: '_middle_term_computer.pyx',
sklearn/metrics/_pairwise_distances_reduction/meson.build:  input: '_middle_term_computer.pyx.tp',
sklearn/metrics/_pairwise_distances_reduction/meson.build:    output: '_argkmin.pyx',
sklearn/metrics/_pairwise_distances_reduction/meson.build:    input: '_argkmin.pyx.tp',
sklearn/metrics/_pairwise_distances_reduction/meson.build:    output: '_radius_neighbors.pyx',
sklearn/metrics/_pairwise_distances_reduction/meson.build:    input: '_radius_neighbors.pyx.tp',
sklearn/metrics/_pairwise_distances_reduction/meson.build:  output: '_argkmin_classmode.pyx',
sklearn/metrics/_pairwise_distances_reduction/meson.build:  input: '_argkmin_classmode.pyx.tp',
sklearn/metrics/_pairwise_distances_reduction/meson.build:  output: '_radius_neighbors_classmode.pyx',
sklearn/metrics/_pairwise_distances_reduction/meson.build:  input: '_radius_neighbors_classmode.pyx.tp',
sklearn/metrics/meson.build:  output: '_dist_metrics.pyx',
sklearn/metrics/meson.build:  input: '_dist_metrics.pyx.tp',

The impact of this is that cython_args are not used for these extensions. Probably worth back-porting for 1.7.

@lesteve lesteve changed the title Fix sklearn utils meson BLD Add missing cython generator for a few extensions May 9, 2025
@lesteve lesteve added To backport PR merged in master that need a backport to a release branch defined based on the milestone. and removed To backport PR merged in master that need a backport to a release branch defined based on the milestone. labels May 9, 2025
@lesteve lesteve added this to the 1.7 milestone May 9, 2025
@github-actions

github-actions Bot commented May 9, 2025

Copy link
Copy Markdown

✔️ Linting Passed

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

Generated for commit: 5438136. Link to the linter CI: here

@lesteve lesteve added the Quick Review For PRs that are quick to review label May 9, 2025
@lorentzenchr
lorentzenchr merged commit fec2fe6 into scikit-learn:main May 9, 2025
@lesteve
lesteve deleted the fix-sklearn-utils-meson branch May 12, 2025 13:22
@lesteve lesteve added the To backport PR merged in master that need a backport to a release branch defined based on the milestone. label May 12, 2025
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:cluster module:neighbors module:utils Quick Review For PRs that are quick to review To backport PR merged in master that need a backport to a release branch defined based on the milestone.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants