try ctypes params (#38411)

* try cffi params

* ctypes

* lil more

* rm cython

* lil more

* that was fine

* lil more

* Drop unrelated Params concurrency changes

* Clean up ctypes Params build integration

* just c

* Clarify Params exception translation

* Expand Params C wrappers

* lil more
This commit is contained in:
Adeeb Shihadeh
2026-07-22 13:26:28 -07:00
committed by GitHub
parent aac9d9ecf4
commit 74ac5ef9a0
9 changed files with 396 additions and 218 deletions
+5 -8
View File
@@ -1,4 +1,4 @@
Import('env', 'envCython')
Import('env')
common_libs = [
'params.cc',
@@ -11,12 +11,9 @@ common_libs = [
_common = env.Library('common', common_libs, LIBS="json11")
Export('_common')
params_python = env.SharedLibrary('params_c', 'params_c.cc', LIBS=[_common, 'zmq', 'json11'])
common_python = [params_python]
Export('common_python')
if GetOption('extras'):
env.Program('tests/test_swaglog', 'tests/test_swaglog.cc', LIBS=[_common, 'json11', 'zmq', 'pthread'])
# Cython bindings
params_python = envCython.Program('params_pyx.so', 'params_pyx.pyx', LIBS=envCython['LIBS'] + [_common, 'zmq', 'json11'])
common_python = [params_python]
Export('common_python')