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 (172 lines) | stat: -rw-r--r-- 5,739 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Note: the dependencies between different Cython files in
# _pairwise_distances_reduction is probably one of the most involved in
# scikit-learn. If you change this file make sure you build from scratch:
# rm -rf build; make dev-meson
# run a command like this:
# ninja -C build/cp312 -t missingdeps
# and make sure that the output is something like:
# No missing dependencies on generated files found.

# _pairwise_distances_reduction is cimported from other subpackages so this is
# needed for the cimport to work
_pairwise_distances_reduction_cython_tree = [
  fs.copyfile('__init__.py'),
]

_classmode_pxd = fs.copyfile('_classmode.pxd')

_datasets_pair_pxd = custom_target(
  '_datasets_pair_pxd',
  output: '_datasets_pair.pxd',
  input: '_datasets_pair.pxd.tp',
  command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@']
)
_datasets_pair_pyx = custom_target(
  '_datasets_pair_pyx',
  output: '_datasets_pair.pyx',
  input: '_datasets_pair.pyx.tp',
  command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@'],
)
_datasets_pair = py.extension_module(
  '_datasets_pair',
  [_datasets_pair_pxd, _datasets_pair_pyx,
    _pairwise_distances_reduction_cython_tree, utils_cython_tree],
  dependencies: [np_dep, openmp_dep],
  override_options: ['cython_language=cpp'],
  cython_args: cython_args,
  subdir: 'sklearn/metrics/_pairwise_distances_reduction',
  install: true
)

_base_pxd = custom_target(
  '_base_pxd',
  output: '_base.pxd',
  input: '_base.pxd.tp',
  command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@']
)
_base_pyx = custom_target(
  '_base_pyx',
  output: '_base.pyx',
  input: '_base.pyx.tp',
  command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@'],
)
_base = py.extension_module(
  '_base',
  [_base_pxd, _base_pyx,
   _pairwise_distances_reduction_cython_tree,
   _datasets_pair_pxd, utils_cython_tree],
  dependencies: [np_dep, openmp_dep],
  override_options: ['cython_language=cpp'],
  cython_args: cython_args,
  subdir: 'sklearn/metrics/_pairwise_distances_reduction',
  install: true
)

_middle_term_computer_pxd = custom_target(
  '_middle_term_computer_pxd',
  output: '_middle_term_computer.pxd',
  input: '_middle_term_computer.pxd.tp',
  command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@']
)
_middle_term_computer_pyx = custom_target(
  '_middle_term_computer_pyx',
  output: '_middle_term_computer.pyx',
  input: '_middle_term_computer.pyx.tp',
  command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@'],
)
_middle_term_computer = py.extension_module(
  '_middle_term_computer',
  [_middle_term_computer_pxd, _middle_term_computer_pyx,
   _pairwise_distances_reduction_cython_tree, utils_cython_tree],
  dependencies: [np_dep, openmp_dep],
  override_options: ['cython_language=cpp'],
  cython_args: cython_args,
  subdir: 'sklearn/metrics/_pairwise_distances_reduction',
  install: true
)

_argkmin_pxd = custom_target(
    '_argkmin_pxd',
    output: '_argkmin.pxd',
    input: '_argkmin.pxd.tp',
    command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@']
  )
_argkmin_pyx = custom_target(
    '_argkmin_pyx',
    output: '_argkmin.pyx',
    input: '_argkmin.pyx.tp',
    command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@'],
  )
_argkmin = py.extension_module(
    '_argkmin',
    [_argkmin_pxd, _argkmin_pyx,
     _pairwise_distances_reduction_cython_tree,
     _datasets_pair_pxd, _base_pxd, _middle_term_computer_pxd,
     utils_cython_tree],
    dependencies: [np_dep, openmp_dep],
    override_options: ['cython_language=cpp'],
    cython_args: cython_args,
    subdir: 'sklearn/metrics/_pairwise_distances_reduction',
    install: true
)

_radius_neighbors_pxd = custom_target(
    '_radius_neighbors_pxd',
    output: '_radius_neighbors.pxd',
    input: '_radius_neighbors.pxd.tp',
    command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@']
  )
_radius_neighbors_pyx = custom_target(
    '_radius_neighbors_pyx',
    output: '_radius_neighbors.pyx',
    input: '_radius_neighbors.pyx.tp',
    command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@'],
  )
_radius_neighbors = py.extension_module(
    '_radius_neighbors',
    [_radius_neighbors_pxd, _radius_neighbors_pyx,
     _datasets_pair_pxd, _base_pxd, _middle_term_computer_pxd,
     _pairwise_distances_reduction_cython_tree, utils_cython_tree],
    dependencies: [np_dep, openmp_dep],
    override_options: ['cython_language=cpp'],
    cython_args: cython_args,
    subdir: 'sklearn/metrics/_pairwise_distances_reduction',
    install: true
)

_argkmin_classmode_pyx = custom_target(
  '_argkmin_classmode_pyx',
  output: '_argkmin_classmode.pyx',
  input: '_argkmin_classmode.pyx.tp',
  command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@'],
)
_argkmin_classmode = py.extension_module(
  '_argkmin_classmode',
  [_argkmin_classmode_pyx, _classmode_pxd,
   _argkmin_pxd, _pairwise_distances_reduction_cython_tree,
   _datasets_pair_pxd, _base_pxd, _middle_term_computer_pxd, utils_cython_tree],
  dependencies: [np_dep],
  override_options: ['cython_language=cpp'],
  cython_args: cython_args,
  subdir: 'sklearn/metrics/_pairwise_distances_reduction',
  install: true
)

_radius_neighbors_classmode_pyx = custom_target(
  '_radius_neighbors_classmode_pyx',
  output: '_radius_neighbors_classmode.pyx',
  input: '_radius_neighbors_classmode.pyx.tp',
  command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@'],
)
_radius_neighbors_classmode = py.extension_module(
  '_radius_neighbors_classmode',
  [_radius_neighbors_classmode_pyx, _classmode_pxd,
  _middle_term_computer_pxd, _radius_neighbors_pxd,
  _pairwise_distances_reduction_cython_tree,
  _datasets_pair_pxd, _base_pxd, utils_cython_tree],
  dependencies: [np_dep],
  override_options: ['cython_language=cpp'],
  cython_args: cython_args,
  subdir: 'sklearn/metrics/_pairwise_distances_reduction',
  install: true
)