Debian Codegraph @

test cases/unit/126 python extension/meson.build

raw
1 project('python extension', 'c', meson_version : '>=1.3.0')
2
3 py = import('python').find_installation('')
4
5 py.extension_module(
6 'foo', 'foo.c',
7 install: true,
8 )
9
10 limited_api_supported = true
11 if py.language_version().version_compare('>=3.13') and py.language_version().version_compare('<3.15')
12 limited_api_supported = py.get_variable('Py_GIL_DISABLED') != 1
13 endif
14 if limited_api_supported
15 py.extension_module(
16 'foo_stable', 'foo.c',
17 install: true,
18 limited_api: '3.2',
19 )
20 endif