File: meson.build

package info (click to toggle)
scikit-learn 1.4.2%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 25,036 kB
  • sloc: python: 201,105; cpp: 5,790; ansic: 854; makefile: 304; sh: 56; javascript: 20
file content (26 lines) | stat: -rw-r--r-- 725 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
tree_extension_metadata = {
  '_tree':
    {'sources': ['_tree.pyx'],
     'override_options': ['cython_language=cpp', 'optimization=3']},
  '_splitter':
    {'sources': ['_splitter.pyx'],
     'override_options': ['optimization=3']},
  '_criterion':
    {'sources': ['_criterion.pyx'],
     'override_options': ['optimization=3']},
  '_utils':
    {'sources': ['_utils.pyx'],
     'override_options': ['optimization=3']},
}

foreach ext_name, ext_dict : tree_extension_metadata
  py.extension_module(
    ext_name,
    ext_dict.get('sources'),
    dependencies: [np_dep],
    override_options : ext_dict.get('override_options', []),
    cython_args: cython_args,
    subdir: 'sklearn/tree',
    install: true
  )
endforeach