20 lines
411 B
Meson
20 lines
411 B
Meson
|
# .pyx is generated, so this is needed to make Cython compilation work
|
||
|
_loss_cython_tree = [
|
||
|
fs.copyfile('_loss.pxd')
|
||
|
]
|
||
|
|
||
|
_loss_pyx = custom_target(
|
||
|
'_loss_pyx',
|
||
|
output: '_loss.pyx',
|
||
|
input: '_loss.pyx.tp',
|
||
|
command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@'],
|
||
|
)
|
||
|
|
||
|
py.extension_module(
|
||
|
'_loss',
|
||
|
[_loss_pyx, _loss_cython_tree],
|
||
|
cython_args: cython_args,
|
||
|
install: true,
|
||
|
subdir: 'sklearn/_loss',
|
||
|
)
|