32 lines
728 B
Meson
32 lines
728 B
Meson
|
# .pyx is generated, so this is needed to make Cython compilation work
|
||
|
linear_model_cython_tree = [
|
||
|
fs.copyfile('__init__.py'),
|
||
|
fs.copyfile('_sgd_fast.pxd'),
|
||
|
]
|
||
|
|
||
|
py.extension_module(
|
||
|
'_cd_fast',
|
||
|
['_cd_fast.pyx', utils_cython_tree],
|
||
|
cython_args: cython_args,
|
||
|
subdir: 'sklearn/linear_model',
|
||
|
install: true
|
||
|
)
|
||
|
|
||
|
name_list = ['_sgd_fast', '_sag_fast']
|
||
|
|
||
|
foreach name: name_list
|
||
|
pyx = custom_target(
|
||
|
name + '_pyx',
|
||
|
output: name + '.pyx',
|
||
|
input: name + '.pyx.tp',
|
||
|
command: [py, tempita, '@INPUT@', '-o', '@OUTDIR@']
|
||
|
)
|
||
|
py.extension_module(
|
||
|
name,
|
||
|
[pyx, linear_model_cython_tree, utils_cython_tree],
|
||
|
cython_args: cython_args,
|
||
|
subdir: 'sklearn/linear_model',
|
||
|
install: true
|
||
|
)
|
||
|
endforeach
|