fix: noconfirm auto-selects first AUR match
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
project('Python limited api disabled', 'c',
|
||||
default_options : ['buildtype=release', 'werror=true', 'python.allow_limited_api=false'])
|
||||
|
||||
py_mod = import('python')
|
||||
py = py_mod.find_installation()
|
||||
|
||||
module = py.extension_module('my_module',
|
||||
'module.c',
|
||||
limited_api: '3.7',
|
||||
)
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
#include <Python.h>
|
||||
|
||||
#if defined(Py_LIMITED_API)
|
||||
#error "Py_LIMITED_API's definition by Meson should have been disabled."
|
||||
#endif
|
||||
|
||||
static struct PyModuleDef my_module = {
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"my_module",
|
||||
NULL,
|
||||
-1,
|
||||
NULL
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC PyInit_my_module(void) {
|
||||
return PyModule_Create(&my_module);
|
||||
}
|
||||
Reference in New Issue
Block a user