]> git.cworth.org Git - notmuch/commit
configure: use cffi.FFI().verify() to test buildability of CFFI bindings
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 9 Jun 2020 12:32:27 +0000 (15:32 +0300)
committerDavid Bremner <david@tethera.net>
Wed, 10 Jun 2020 02:06:03 +0000 (23:06 -0300)
commit963e363a234f1c8bdf1ae68956f80a2538bee7dc
treeabd1bb8477d4ab898730f85a1aa8d0b1fc26d9bd
parent411229f26b8e71b78411b0e9dae1cd27a00f15b8
configure: use cffi.FFI().verify() to test buildability of CFFI bindings

Checking existence of pyconfig.h to determine whether CFFI-based
notmuch bindings are buildable is not enough; for example Fedora 32
ships pyconfig.h in python3-libs package, but python3-devel is required
to be installed for the bindings to build.

Executing cffi.FFI().verify() is pretty close to what is done in
bindings/python-cffi/notmuch2/_build.py to get the c code part of the
bindings built.
configure