Skip to content

Commit 75697ab

Browse files
Martin Belangerigaw
authored andcommitted
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 <[email protected]>
1 parent e9b11a7 commit 75697ab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,10 @@ dependencies = []
3131
"Homepage" = "https://github.com/linux-nvme/nvme-cli"
3232
"Source" = "https://github.com/linux-nvme/nvme-cli"
3333
"Bug Tracker" = "https://github.com/linux-nvme/nvme-cli/issues"
34+
35+
[tool.meson-python.args]
36+
setup = [
37+
"-Dnvme=disabled",
38+
"-Dlibnvme=enabled",
39+
"-Dpython=enabled",
40+
]

0 commit comments

Comments
 (0)