`ffi.compile` fails with python3.12 since distutils has been removed
Distutil is removed in Python 3.12 as mentionned in PEP632.
Traceback (most recent call last):
File "<...>/_wrapper/main.py", line 27, in get_lib
ffi.compile(
File "<...>/python3.12/site-packages/cffi/api.py", line 725, in compile
return recompile(self, module_name, source, tmpdir=tmpdir,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<...>/python3.12/site-packages/cffi/recompiler.py", line 1546, in recompile
ext = ffiplatform.get_extension(ext_c_file, module_name, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<...>/python3.12/site-packages/cffi/ffiplatform.py", line 10, in get_extension
from distutils.core import Extension
ModuleNotFoundError: No module named 'distutils'