This matches the tests for Python extensions. Also include some other cleanups to these `meson.build` files: Adding `python_dep` is no longer needed, this is automatic now. Use a single line for `import('python').find_installation()`, because the result of `import('python')` by itself is not used for anything.1.1
parent
8bbf6a5df9
commit
a5ef213020
5 changed files with 33 additions and 21 deletions
@ -1,11 +1,11 @@ |
|||||||
pyx_c = custom_target('storer_pyx', |
pyx_c = custom_target('storer_pyx', |
||||||
output : 'storer_pyx.c', |
output : 'storer_pyx.c', |
||||||
input : 'storer.pyx', |
input : 'storer.pyx', |
||||||
command : [cython, '@INPUT@', '-o', '@OUTPUT@'], |
command : [cython, '@INPUT@', '-o', '@OUTPUT@', '-3'], |
||||||
) |
) |
||||||
|
|
||||||
slib = py3.extension_module('storer', |
slib = py3.extension_module('storer', |
||||||
'storer.c', pyx_c, |
'storer.c', pyx_c, |
||||||
dependencies : py3_dep) |
) |
||||||
|
|
||||||
pydir = meson.current_build_dir() |
pydir = meson.current_build_dir() |
||||||
|
Loading…
Reference in new issue