10000 BLD Fix build dependency in meson build (#28789) · patrickkwang/scikit-learn@c1d29ce · GitHub
[go: up one dir, main page]

Skip to content

Commit c1d29ce

Browse files
authored
BLD Fix build dependency in meson build (scikit-learn#28789)
1 parent b0a044f commit c1d29ce

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

sklearn/cluster/_hdbscan/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cluster_hdbscan_extension_metadata = {
2-
'_linkage': {'sources': ['_linkage.pyx']},
2+
'_linkage': {'sources': ['_linkage.pyx'] + metrics_cython_tree},
33
'_reachability': {'sources': ['_reachability.pyx']},
44
'_tree': {'sources': ['_tree.pyx']}
55
}

sklearn/cluster/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
cluster_extension_metadata = {
22
'_dbscan_inner':
3-
{'sources': ['_dbscan_inner.pyx'],'override_options': ['cython_language=cpp']},
3+
{'sources': ['_dbscan_inner.pyx'], 'override_options': ['cython_language=cpp']},
44
'_hierarchical_fast':
5-
{'sources': ['_hierarchical_fast.pyx'], 'override_options': ['cython_language=cpp']},
5+
{'sources': ['_hierarchical_fast.pyx'] + metrics_cython_tree, 'override_options': ['cython_language=cpp']},
66
'_k_means_common':
77
{'sources': ['_k_means_common.pyx']},
88
'_k_means_lloyd':

sklearn/metrics/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ _dist_metrics_pxd = custom_target(
1414
install_dir: sklearn_dir / 'metrics',
1515
install: true,
1616
)
17+
metrics_cython_tree += [_dist_metrics_pxd]
1718

1819
_dist_metrics_pyx = custom_target(
1920
'_dist_metrics_pyx',
@@ -24,7 +25,7 @@ _dist_metrics_pyx = custom_target(
2425

2526
_dist_metrics = py.extension_module(
2627
'_dist_metrics',
27-
[_dist_metrics_pyx, _dist_metrics_pxd, utils_cython_tree, metrics_cython_tree],
28+
[_dist_metrics_pyx, utils_cython_tree, metrics_cython_tree],
2829
dependencies: [np_dep],
2930
cython_args: cython_args,
3031
subdir: 'sklearn/metrics',

0 commit comments

Comments
 (0)
0