@@ -31,11 +31,14 @@ _datasets_pair_pyx = custom_target(
31
31
output : ' _datasets_pair.pyx' ,
32
32
input : ' _datasets_pair.pyx.tp' ,
33
33
command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
34
+ # TODO in principle this should go in py.exension_module below. This is
35
+ # temporary work-around for dependency issue with .pyx.tp files. For more
36
+ # details, see https://github.com/mesonbuild/meson/issues/13212
37
+ depends : [_datasets_pair_pxd, _pairwise_distances_reduction_cython_tree, utils_cython_tree],
34
38
)
35
39
_datasets_pair = py.extension_module(
36
40
' _datasets_pair' ,
37
- [_datasets_pair_pxd, _datasets_pair_pyx,
38
- _pairwise_distances_reduction_cython_tree, utils_cython_tree],
41
+ _datasets_pair_pyx,
39
42
dependencies : [np_dep, openmp_dep],
40
43
override_options : [' cython_language=cpp' ],
41
44
cython_args : cython_args,
@@ -54,12 +57,15 @@ _base_pyx = custom_target(
54
57
output : ' _base.pyx' ,
55
58
input : ' _base.pyx.tp' ,
56
59
command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
60
+ # TODO in principle this should go in py.exension_module below. This is
61
+ # temporary work-around for dependency issue with .pyx.tp files. For more
62
+ # details, see https://github.com/mesonbuild/meson/issues/13212
63
+ depends : [_base_pxd, _pairwise_distances_reduction_cython_tree,
64
+ _datasets_pair_pxd, utils_cython_tree],
57
65
)
58
66
_base = py.extension_module(
59
67
' _base' ,
60
- [_base_pxd, _base_pyx,
61
- _pairwise_distances_reduction_cython_tree,
62
- _datasets_pair_pxd, utils_cython_tree],
68
+ _base_pyx,
63
69
dependencies : [np_dep, openmp_dep],
64
70
override_options : [' cython_language=cpp' ],
65
71
cython_args : cython_args,
@@ -78,11 +84,16 @@ _middle_term_computer_pyx = custom_target(
78
84
output : ' _middle_term_computer.pyx' ,
79
85
input : ' _middle_term_computer.pyx.tp' ,
80
86
command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
87
+ # TODO in principle this should go in py.exension_module below. This is
88
+ # temporary work-around for dependency issue with .pyx.tp files. For more
89
+ # details, see https://github.com/mesonbuild/meson/issues/13212
90
+ depends : [_middle_term_computer_pxd,
91
+ _pairwise_distances_reduction_cython_tree,
92
+ utils_cython_tree],
81
93
)
82
94
_middle_term_computer = py.extension_module(
83
95
' _middle_term_computer' ,
84
- [_middle_term_computer_pxd, _middle_term_computer_pyx,
85
- _pairwise_distances_reduction_cython_tree, utils_cython_tree],
96
+ _middle_term_computer_pyx,
86
97
dependencies : [np_dep, openmp_dep],
87
98
override_options : [' cython_language=cpp' ],
88
99
cython_args : cython_args,
@@ -101,13 +112,16 @@ _argkmin_pyx = custom_target(
101
112
output : ' _argkmin.pyx' ,
102
113
input : ' _argkmin.pyx.tp' ,
103
114
command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
104
- )
115
+ # TODO in principle this should go in py.exension_module below. This is
116
+ # temporary work-around for dependency issue with .pyx.tp files. For more
117
+ # details, see https://github.com/mesonbuild/meson/issues/13212
118
+ depends : [_argkmin_pxd,
119
+ _pairwise_distances_reduction_cython_tree,
120
+ _datasets_pair_pxd, _base_pxd, _middle_term_computer_pxd],
121
+ )
105
122
_argkmin = py.extension_module(
106
123
' _argkmin' ,
107
- [_argkmin_pxd, _argkmin_pyx,
108
- _pairwise_distances_reduction_cython_tree,
109
- _datasets_pair_pxd, _base_pxd, _middle_term_computer_pxd,
110
- utils_cython_tree],
124
+ _argkmin_pyx,
111
125
dependencies : [np_dep, openmp_dep],
112
126
override_options : [' cython_language=cpp' ],
113
127
cython_args : cython_args,
@@ -126,12 +140,16 @@ _radius_neighbors_pyx = custom_target(
126
140
output : ' _radius_neighbors.pyx' ,
127
141
input : ' _radius_neighbors.pyx.tp' ,
128
142
command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
129
- )
143
+ # TODO in principle this should go in py.exension_module below. This is
144
+ # temporary work-around for dependency issue with .pyx.tp files. For more
145
+ # details, see https://github.com/mesonbuild/meson/issues/13212
146
+ depends : [_radius_neighbors_pxd,
147
+ _datasets_pair_pxd, _base_pxd, _middle_term_computer_pxd,
148
+ _pairwise_distances_reduction_cython_tree, utils_cython_tree],
149
+ )
130
150
_radius_neighbors = py.extension_module(
131
151
' _radius_neighbors' ,
132
- [_radius_neighbors_pxd, _radius_neighbors_pyx,
133
- _datasets_pair_pxd, _base_pxd, _middle_term_computer_pxd,
134
- _pairwise_distances_reduction_cython_tree, utils_cython_tree],
152
+ _radius_neighbors_pyx,
135
153
dependencies : [np_dep, openmp_dep],
136
154
override_options : [' cython_language=cpp' ],
137
155
cython_args : cython_args,
@@ -144,12 +162,16 @@ _argkmin_classmode_pyx = custom_target(
144
162
output : ' _argkmin_classmode.pyx' ,
145
163
input : ' _argkmin_classmode.pyx.tp' ,
146
164
command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
165
+ # TODO in principle this should go in py.exension_module below. This is
166
+ # temporary work-around for dependency issue with .pyx.tp files. For more
167
+ # details, see https://github.com/mesonbuild/meson/issues/13212
168
+ depends : [_classmode_pxd,
169
+ _argkmin_pxd, _pairwise_distances_reduction_cython_tree,
170
+ _datasets_pair_pxd, _base_pxd, _middle_term_computer_pxd, utils_cython_tree],
147
171
)
148
172
_argkmin_classmode = py.extension_module(
149
173
' _argkmin_classmode' ,
150
- [_argkmin_classmode_pyx, _classmode_pxd,
151
- _argkmin_pxd, _pairwise_distances_reduction_cython_tree,
152
- _datasets_pair_pxd, _base_pxd, _middle_term_computer_pxd, utils_cython_tree],
174
+ _argkmin_classmode_pyx,
153
175
dependencies : [np_dep],
154
176
override_options : [' cython_language=cpp' ],
155
177
cython_args : cython_args,
@@ -166,13 +188,17 @@ _radius_neighbors_classmode_pyx = custom_target(
166
188
output : ' _radius_neighbors_classmode.pyx' ,
167
189
input : ' _radius_neighbors_classmode.pyx.tp' ,
168
190
command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
191
+ # TODO in principle this should go in py.exension_module below. This is
192
+ # temporary work-around for dependency issue with .pyx.tp files. For more
193
+ # details, see https://github.com/mesonbuild/meson/issues/13212
194
+ depends : [_classmode_pxd,
195
+ _middle_term_computer_pxd, _radius_neighbors_pxd,
196
+ _pairwise_distances_reduction_cython_tree,
197
+ _datasets_pair_pxd, _base_pxd, utils_cython_tree],
169
198
)
170
199
_radius_neighbors_classmode = py.extension_module(
171
200
' _radius_neighbors_classmode' ,
172
- [_radius_neighbors_classmode_pyx, _classmode_pxd,
173
- _middle_term_computer_pxd, _radius_neighbors_pxd,
174
- _pairwise_distances_reduction_cython_tree,
175
- _datasets_pair_pxd, _base_pxd, utils_cython_tree],
201
+ _radius_neighbors_classmode_pyx,
176
202
dependencies : [np_dep],
177
203
override_options : [' cython_language=cpp' ],
178
204
cython_args : cython_args,
0 commit comments