From df0c86db7f6c5e02f573eb82b8e3546a78573023 Mon Sep 17 00:00:00 2001 From: Martin Belanger Date: Thu, 8 Jan 2026 13:38:12 -0500 Subject: [PATCH] PyPI: add meson options to build without nvme executable Now that nvme-cli and libnvme live in the same GitHub repository, meson builds both by default. When building the PyPI package, however, we only want to build libnvme and the Python bindings, not the nvme executable. Signed-off-by: Martin Belanger --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index be6896bc4c..87bfaaaf9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,3 +31,10 @@ dependencies = [] "Homepage" = "https://github.com/linux-nvme/nvme-cli" "Source" = "https://github.com/linux-nvme/nvme-cli" "Bug Tracker" = "https://github.com/linux-nvme/nvme-cli/issues" + +[tool.meson-python.args] +setup = [ + "-Dnvme=disabled", + "-Dlibnvme=enabled", + "-Dpython=enabled", +]