File: meson.build

package info (click to toggle)
scikit-learn 1.7.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,752 kB
  • sloc: python: 219,120; cpp: 5,790; ansic: 846; makefile: 191; javascript: 110
file content (26 lines) | stat: -rw-r--r-- 975 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cluster_extension_metadata = {
  '_dbscan_inner':
    {'sources': [cython_gen_cpp.process('_dbscan_inner.pyx')]},
  '_hierarchical_fast':
    {'sources': [cython_gen_cpp.process('_hierarchical_fast.pyx'), metrics_cython_tree]},
  '_k_means_common':
    {'sources': [cython_gen.process('_k_means_common.pyx')], 'dependencies': [openmp_dep]},
  '_k_means_lloyd':
    {'sources': [cython_gen.process('_k_means_lloyd.pyx')], 'dependencies': [openmp_dep]},
  '_k_means_elkan':
    {'sources': [cython_gen.process('_k_means_elkan.pyx')], 'dependencies': [openmp_dep]},
  '_k_means_minibatch':
    {'sources': [cython_gen.process('_k_means_minibatch.pyx')], 'dependencies': [openmp_dep]},
}

foreach ext_name, ext_dict : cluster_extension_metadata
  py.extension_module(
    ext_name,
    [ext_dict.get('sources'), utils_cython_tree],
    dependencies: [np_dep] + ext_dict.get('dependencies', []),
    subdir: 'sklearn/cluster',
    install: true
  )
endforeach

subdir('_hdbscan')