]> www.infradead.org Git - users/sagi/libnvme.git/commit
python, meson: Assert that deps are present for -Dpython=true
authorMartin Belanger <martin.belanger@dell.com>
Wed, 1 Mar 2023 19:21:03 +0000 (14:21 -0500)
committerDaniel Wagner <wagi@monom.org>
Thu, 2 Mar 2023 09:54:27 +0000 (10:54 +0100)
commitad36c76d353c622c3f9081f5c3dc1b037f778b80
tree5804fb14eed11bee1b4d11593316fc1c834cf434
parent2064caf2c3f12185025157e8b64a453f97a73df0
python, meson: Assert that deps are present for -Dpython=true

The -Dpython option takes 3 values: auto, true, or false. For
"auto", the Python bindings will be built if all the dependencies
are met and will be skipped in not. For "true", the Python bindings
MUST be built and therefore missing dependencies need to be treated
as an error. For "false", the Python bindings won't be built whether
the dependencies are met or not.

Currently, with -Dpython=true, if a dependency required to build the
Python bindings is missing, meson silently skips it (i.e. it behaves
like "-Dpython=auto").

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
libnvme/meson.build